state -> derived
This commit is contained in:
parent
e024c4258a
commit
06a5dd0232
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
// Track pathname changes - if pathname changes but navigating is still true,
|
||||
// navigation might be stuck (though this shouldn't happen normally)
|
||||
let lastPathname = $state(data.pathname);
|
||||
let lastPathname = $derived(data.pathname);
|
||||
$effect(() => {
|
||||
if (data.pathname !== lastPathname) {
|
||||
lastPathname = data.pathname;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue