Description
Enhanced nav produces different scroll position behaviors than normal navigation. Ideally it would be approximately the same.
- When clicking a link:
- Current: Regular navigation scrolls to the top, enhanced nav behaves unpredictably:
- If you're not doing streaming SSR, then it doesn't scroll to the top
- If you are doing streaming SSR, then whether or not it scrolls depends on how quickly the streaming completes
- Ideal: Enhanced nav should scroll to top, except if you're staying on the same page, in which case it should leave the scroll position alone (though it's unclear what we should do if there's streaming SSR - do we restore the scroll pos after streaming completes?)
- Current: Regular navigation scrolls to the top, enhanced nav behaves unpredictably:
- When going back/forwards:
- Current: Regular nav tracks the scroll positions and restores them after backforwards; enhanced nav does not
- Ideal: Ideally it would somehow track and restore scroll positions