crazy bug global store + solid router
inconsistently I am hittin the following crash
when using a global store + createMemo something on solid js router crashes!
And it is crashing on the router, why?
the most crazy thing is that it is a little bit random, same code wasn't crashing at some time, and then it started to crash several times in a row without changing anything, I tried clearing site data several times and restart vite and it still happened
it only happens when i reload the SPA to start deep in the route that is rendering
Profile
if instead i navigate it works3 Replies
can you reproduce this in stackblitz? it's hard to say what's happening without a reproduction
I've been able to replicate it
https://stackblitz.com/edit/solidjs-templates-kvsrfn?file=src%2Findex.jsx
seems like the bug actually comes when
Nested
Index
rendering A
and then the links change based on reactivity and A
tries to evaluate a route with path undefined
@ryansolid i think i've ran into this before, sometimes
path
in resolvePath
is undefined, i assume it's some weird result of being in a transition