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
Page store does not changing on history back #4554
Comments
Confirmed with version BTW, I did some Scenario 1
This is the same as the scenario that OP mentioned. Scenario 2
Same behavior as scenario 1: clicking the "no hash" link while on that URL had no effect. Scenario 3
This behavior is different from scenarios 1 and 2. By clicking on an So is |
Possibly related #3975 (comment) |
I made some research and can say that your predictions are right - It happens due to #3177.
|
@Rich-Harris can you take a look? |
This is somewhat related to #2673 I wanted to update the URL without fetching the page route again, as described in #2673 . As a temporary workaround, I tried changing the hash fragment instead. I ran into the same problem as described here. As mentioned above, the internal So I think if there was a way to update the internal url of the client without triggering navigation, it can serve as a solution to both these issues. |
No longer reproducible. |
これが関係ある?(ちゃんと読んでない) sveltejs/kit#4554
Describe the bug
Page store does not trigger change when navigate to hash url and use history back. In presented code fragment on each hash change needs to be 2 logs ($page object and HashChangeEvent), but sometimes logs only one record with event and store stays unchaged.
Reproduction
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: