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 ac02814 commit 6e300b2Copy full SHA for 6e300b2
packages/kit/src/runtime/client/client.js
@@ -2505,7 +2505,7 @@ function _start_router() {
2505
if (history_index === current_history_index) return;
2506
2507
const scroll = scroll_positions[history_index];
2508
- const state = unstringify(event.state[STATES_KEY], app.hooks.transport) ?? {};
+ const state = event.state[STATES_KEY] ? unstringify(event.state[STATES_KEY], app.hooks.transport) : {};
2509
const url = new URL(event.state[PAGE_URL_KEY] ?? location.href);
2510
const navigation_index = event.state[NAVIGATION_INDEX];
2511
const is_hash_change = current.url ? strip_hash(location) === strip_hash(current.url) : false;
0 commit comments