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
Using let metadata = $context.route.metadata to conditionally render the slot, makes goto to not redirect to '/' (if condition actually hits). Also, trying to click to href="/" also doesn't work and no content is being rendered. If I would use $context.route.metadata directly and not via let metadata, everything works fine.
I have created a repo: https://github.com/dBaliukynas/routify-test. I used pnpm, so you would only need to clone and run pnpm i and pnpm run dev. The behavior can be seen in _module.svelte file.
Describe the bug
Using
let metadata = $context.route.metadata
to conditionally render the slot, makes goto to not redirect to '/' (if condition actually hits). Also, trying to click to href="/" also doesn't work and no content is being rendered. If I would use$context.route.metadata
directly and not via let metadata, everything works fine.Reproduction
Full code (this works improperly):
This works properly:
Logs
No response
System Info
The text was updated successfully, but these errors were encountered: