fix: pass hydrate_async through OwnedView properly (closes #4219) (#4220)

This commit is contained in:
Greg Johnston
2025-08-11 21:06:02 -04:00
committed by GitHub
parent 30141293f6
commit 9e3c0cc402

View File

@@ -153,6 +153,20 @@ where
OwnedViewState::new(state, self.owner)
}
async fn hydrate_async(
self,
cursor: &Cursor,
position: &PositionState,
) -> Self::State {
let state = self
.owner
.with(|| {
ScopedFuture::new(self.view.hydrate_async(cursor, position))
})
.await;
OwnedViewState::new(state, self.owner)
}
async fn resolve(self) -> Self::AsyncOutput {
let OwnedView { owner, view } = self;
let view = owner