We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24dbf2c + 0a964b6 commit 626c224Copy full SHA for 626c224
2 files changed
.changeset/duplicated-history-push.md
@@ -0,0 +1,5 @@
1
+---
2
+"@solidjs/router": patch
3
4
+
5
+Fix duplicated push history
src/data/events.ts
@@ -68,7 +68,7 @@ export function setupNativeEvents(
68
resolve: false,
69
replace: a.hasAttribute("replace"),
70
scroll: !a.hasAttribute("noscroll"),
71
- state: state && JSON.parse(state)
+ state: state ? JSON.parse(state) : undefined
72
});
73
}
74
0 commit comments