mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
fix client side suspense
This commit is contained in:
parent
8e007cc137
commit
476b2ac88a
2 changed files with 4 additions and 4 deletions
|
@ -439,7 +439,7 @@ impl VirtualDom {
|
|||
self.process_events();
|
||||
|
||||
// Now that we have collected all queued work, we should check if we have any dirty scopes. If there are not, then we can poll any queued futures
|
||||
if !self.dirty_scopes.is_empty() || !self.suspended_scopes.is_empty() {
|
||||
if !self.dirty_scopes.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -162,9 +162,9 @@ pub async fn run(virtual_dom: VirtualDom, web_config: Config) {
|
|||
{
|
||||
let mut hot_reload_next = hotreload_rx.select_next_some();
|
||||
select! {
|
||||
_ = work => (None, None),
|
||||
new_template = hot_reload_next => (None, Some(new_template)),
|
||||
evt = rx_next => (Some(evt), None),
|
||||
_ = work => (None, None),
|
||||
new_template = hot_reload_next => (None, Some(new_template)),
|
||||
evt = rx_next => (Some(evt), None),
|
||||
}
|
||||
}
|
||||
#[cfg(not(all(feature = "hot_reload", debug_assertions)))]
|
||||
|
|
Loading…
Reference in a new issue