kit
kit copied to clipboard
`afterNavigate` gets called on previous page if it has a global transition
Describe the bug
Normally from navigating from page A to page B the callback flow is the following:
- A -
beforeNavigate - A -
onNavigate - B -
afterNavigate
But, when page A has a component with transition|global, it's afterNavigate is also called. I think this is a bug, or should at least be documented.
Related: #12545
Reproduction
https://www.sveltelab.dev/kgvookzyzs3eb87
Severity
annoyance