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 6b3e5fa commit cc6f1caCopy full SHA for cc6f1ca
packages/kit/src/runtime/client/client.js
@@ -2496,7 +2496,7 @@ function _start_router() {
2496
if (history_index === current_history_index) return;
2497
2498
const scroll = scroll_positions[history_index];
2499
- const state = unstringify(event.state[STATES_KEY], app.hooks.transport) ?? {};
+ const state = event.state[STATES_KEY] ? unstringify(event.state[STATES_KEY], app.hooks.transport) : {};
2500
const url = new URL(event.state[PAGE_URL_KEY] ?? location.href);
2501
const navigation_index = event.state[NAVIGATION_INDEX];
2502
const is_hash_change = current.url ? strip_hash(location) === strip_hash(current.url) : false;
0 commit comments