We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f0866 commit d665cc9Copy full SHA for d665cc9
.changeset/stupid-camels-wash.md
@@ -0,0 +1,9 @@
1
+---
2
+"@solidjs/router": patch
3
4
+
5
+Fix Router popstate event handling logic
6
7
+- Simplified delta check logic for history navigation
8
+- Improved reliability of forward navigation detection
9
+- Fixed window.history.forward() navigation handling
src/routers/Router.ts
@@ -32,7 +32,7 @@ export function Router(props: RouterProps): JSX.Element {
32
},
33
init: notify => bindEvent(window, "popstate",
34
notifyIfNotBlocked(notify, delta => {
35
- if (delta && delta < 0) {
+ if (delta) {
36
return !beforeLeave.confirm(delta);
37
} else {
38
const s = getSource();
0 commit comments