Why does this code partially persist browser history? #12387
Unanswered
frederikhors
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to understand how to persist state in the page URL's
searchParams
.But I don't understand how to do it.
I'm using this code:
This is a reproduction: https://stackblitz.com/edit/sveltejs-kit-template-default-kgnoad.
But if you run it you'll see that:
when you first open it there are many lines in console and I don't know why
if I write in the text input the word "
hello
" and I go back with the browser back button the first time it brings me to "hell", if I click again it brings me to "" (nothing)Why?
Beta Was this translation helpful? Give feedback.
All reactions