mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: remove browser-only SendWrapper items during either kind of Suspense (closes #2907)
This commit is contained in:
parent
3b1b2e2dcc
commit
67ccd37336
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue