use queue_events instead of process_events to fix ssr issue (#4772)

* use `queue_events` instead of `process_events` to fix ssr issue

* remove suspense wait from liveview
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-11 21:03:54 -07:00
1 parent 01db142750
commit 76319005b8
3 files changed
+3 -11

No files matched your search

+2
View File
@@ -640,6 +640,8 @@ impl VirtualDom {
#[instrument(skip(self), level = "trace", name = "VirtualDom::wait_for_suspense")]
pub async fn wait_for_suspense(&mut self) {
loop {
self.queue_events();
if !self.suspended_tasks_remaining() && !self.has_dirty_scopes() {
break;
}