Skip to content

Commit 626c224

Browse files
authored
Merge pull request #480 from Legend-Master/duplicated-push-history
Fix duplicated push history
2 parents 24dbf2c + 0a964b6 commit 626c224

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/router": patch
3+
---
4+
5+
Fix duplicated push history

src/data/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function setupNativeEvents(
6868
resolve: false,
6969
replace: a.hasAttribute("replace"),
7070
scroll: !a.hasAttribute("noscroll"),
71-
state: state && JSON.parse(state)
71+
state: state ? JSON.parse(state) : undefined
7272
});
7373
}
7474

0 commit comments

Comments
 (0)