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 5e63d74 commit 2a6b7fdCopy full SHA for 2a6b7fd
src/lib/core/LocationLite.svelte.ts
@@ -44,7 +44,7 @@ export class LocationLite implements Location {
44
['popstate', 'hashchange'].forEach((event) => {
45
cleanups.push(on(globalThis.window, event, () => {
46
this.#innerState.url.href = globalThis.window?.location?.href;
47
- this.#innerState.state = globalThis.window?.history?.state;
+ this.#innerState.state = globalThis.window?.history?.state ?? this.#innerState.state;
48
}));
49
});
50
return () => {
0 commit comments