-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shadow endpoints navigation within same route #3727
Comments
@livehtml I've run into the same issue. Would you mind sharing your workaround? |
@ambiguous48 sure:
Just highlight needed params to watch it in the load function and it works as expected. |
I've tried your workaround and it doesn't work for searchParams as far as I can tell. In my case I'm using url.searchParams (not params) and I can't seem to get the shadow endpoint to pick up changes in the url.searchParams after navigating with After a manual refresh, the first time calling |
Noticed the same issue with both:
|
I was testing this and as it turns out prefetching works for those routes without any issue, but the actual navigation doesn't, @benmccann @bluwy as far as I can see, it looks like the code that checks is the route the same as previous is causing this, I'm trying to fix it, but I didn't succeeded yet. if I do, I'll push PR |
Describe the bug
How can we navigate if route component and endpoint won't change?
Currently its not work as expected.
If we have say:
/example/[...rest].js
/example/[...rest].svelte
And try to use links on page like:
href="/example", href="/example/1", href="example/2" — navigation between them won't work (page not updates, only address bar changes)
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-x92deg?devtoolsheight=33&file=src/routes/example/[...rest].js
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: