fix: remove browser-only SendWrapper items during either kind of Suspense (closes #2907)

This commit is contained in:
Greg Johnston 2024-09-02 07:57:03 -04:00
parent 3b1b2e2dcc
commit 67ccd37336
3 changed files with 9 additions and 3 deletions

View file

@ -166,7 +166,9 @@ where
self.0.take();
}
async fn resolve(self) -> Self::AsyncOutput {
async fn resolve(mut self) -> Self::AsyncOutput {
// see note on dry_resolve() re: SendWrapper
self.0 = None;
self
}
}

View file

@ -288,7 +288,9 @@ where
self.cb.take();
}
async fn resolve(self) -> Self::AsyncOutput {
async fn resolve(mut self) -> Self::AsyncOutput {
// see note on dry_resolve() re: SendWrapper
self.cb = None;
self
}
}

View file

@ -121,7 +121,9 @@ where
self.value.take();
}
async fn resolve(self) -> Self::AsyncOutput {
async fn resolve(mut self) -> Self::AsyncOutput {
// see note on dry_resolve() re: SendWrapper
self.value = None;
self
}
}