Skip to content

Commit

Permalink
Merge pull request #480 from Legend-Master/duplicated-push-history
Browse files Browse the repository at this point in the history
Fix duplicated push history
  • Loading branch information
ryansolid authored Sep 23, 2024
2 parents 24dbf2c + 0a964b6 commit 626c224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/duplicated-history-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/router": patch
---

Fix duplicated push history
2 changes: 1 addition & 1 deletion src/data/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function setupNativeEvents(
resolve: false,
replace: a.hasAttribute("replace"),
scroll: !a.hasAttribute("noscroll"),
state: state && JSON.parse(state)
state: state ? JSON.parse(state) : undefined
});
}

Expand Down

0 comments on commit 626c224

Please sign in to comment.