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
Thanks for this library, I've been putting off learning Svelte 5 for lack of a router and this has me back at it.
I'm struggling pass props via the router - it seems I lose reactivity when doing so.
I put together an example on the playground - when I render a component directly and pass props the reactivity works as expected, but when I render a component via the router the props are only evaluated once and the UI doesn't update on future changes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Thanks for this library, I've been putting off learning Svelte 5 for lack of a router and this has me back at it.
I'm struggling pass props via the router - it seems I lose reactivity when doing so.
I put together an example on the playground - when I render a component directly and pass props the reactivity works as expected, but when I render a component via the router the props are only evaluated once and the UI doesn't update on future changes.
Any idea what I might be doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions