You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
navigate by clicking links back and forth from /a and /b, and see how in the console each time the number of logs increases. Also see the "after navigate was called" in /b, it should be false, but the code in /a's afterNavigate changes it to true.
Describe the bug
When returning a function from an
onNavigate
callback in a parent layout, a childafterNavigate
does not get removed during a page change.Reproduction
https://github.com/Elia872/kit-afternav-error
navigate by clicking links back and forth from /a and /b, and see how in the console each time the number of logs increases. Also see the "after navigate was called" in /b, it should be false, but the code in /a's
afterNavigate
changes it to true.Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: