You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but there is getState() in context-provided router instance... and it is useless in solid-js by default - signal is needed to be reactive. It is possible to override the methods isself:
Is it good idea at all?
I can't understand, may be the getState() is for internal usage only and must not be used at client apps, as reactive at least?
Is getState() always the same as route prop in subscribe handler or there is some diffs?
Second issue is about checking if the route active or not. In examples I found only equals by name. But what about nested routes, where the route is always most nested one. Is it ok to check it like this:
Hi!
I playing with route5 and solid-js and there is a primitive state named signal. It needed to make things reactive in solid-js.
I subscribed to router and it work ok:
but there is
getState()
in context-provided router instance... and it is useless in solid-js by default - signal is needed to be reactive. It is possible to override the methods isself:Is it good idea at all?
I can't understand, may be the
getState()
is for internal usage only and must not be used at client apps, as reactive at least?Is
getState()
always the same asroute
prop in subscribe handler or there is some diffs?Second issue is about checking if the route active or not. In examples I found only equals by name. But what about nested routes, where the route is always most nested one. Is it ok to check it like this:
Thank you!
The text was updated successfully, but these errors were encountered: