S
SolidJS8mo ago
iczero

Solid Router with Suspense does not fire signals

I currently have a setup where a Router is wrapped in a Suspense and many routes are loaded with lazy. The Suspense works properly and a loading message is displayed when the page is initially loading. However, there are some cases where signals do not fire during page navigation. The minimum reproduction I got is at https://gist.github.com/iczero/46eff94d6f8e6dbbf19c5254969759ed. The first setProgress does not fire, but the second one does. If the first one is wrapped in queueMicrotask, it does fire. If the Suspense outside the router is removed, the issue goes away. Is this intended behavior? Is there a better way of showing a fallback while the router is loading without wrapping the router in Suspense?
0 Replies
No replies yetBe the first to reply to this messageJoin