[Bug?]: Reactivity is paused / behaves weird while the next page is loading #1090
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
Behavior for reactivity is different between solid-js SPA and solid-start during navigating between pages.
Here's codesandbox for normal solid-js behavior and here's the same code translated to solid-start (below)
When you navigate between pages for the first time, the "exit count" inside a normal version results in "2", while in solid start it results in "1". Also there's a delay between "set" action and when this action is logged inside the "createEffect". In solid start version (code below), "setExitCount(...)" line inside "onExit" callback seems to get delayed until (i'm assuming until "done" is called inside "onExit" callback or when "onEnter" is called).
What's curious if "setExitCount" is wrapped in "setTimeout(..., 0)", it executes much faster than normal inline version. It makes me think that there's some manual reactivity delay going on
I'd expect the exact same behavior in both cases
Expected behavior 🤔
Same behavior as in normal solid-js version with synchronous callbacks and effects
Steps to reproduce 🕹
Steps:
Context 🔦
No response
Your environment 🌎
The text was updated successfully, but these errors were encountered: