#4866·leptos

SSR `<Suspense>` hangs when a child closure creates a Resource

Author: adrianncovaciCreated Aug 28, 2026Updated Aug 28, 2026

Describe the bug On the server, a <Suspense> whose reactive child closure creates a Resource never sends its out-of-order chunk. The task set effect re-walks the children on every empty task observation, each walk re-runs the closure, creates a fresh resource and registers a fresh pending task, so the condition double_checking == Some(true) && curr_tasks.is_empty() is never met. The response stream stays open on the fallback until the client gives up.

Leptos Dependencies Upstream main branch

To Reproduce curl http://127.0.0.1:3100 after running https://github.com/adrianncovaci/leptos-suspense-double-check-repro