kit icon indicating copy to clipboard operation
kit copied to clipboard

`afterNavigate` gets called on previous page if it has a global transition

Open rChaoz opened this issue 1 year ago • 0 comments

Describe the bug

Normally from navigating from page A to page B the callback flow is the following:

  1. A - beforeNavigate
  2. A - onNavigate
  3. 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

rChaoz avatar Aug 04 '24 21:08 rChaoz