If I understand correctly, this will update positions when the navigation state is not idle, e.g. when it's loading. This will only happen if the next route has a loader.
Here's a reduced test case to illustrate the problem: https://stackblitz.com/edit/github-eve2dr-vm34va?file=src%2Fapp.tsx
What are your thoughts on updating this to save the scroll position even when navigating to a route that doesn't have a loader?
If I understand correctly, this will update positions when the navigation state is not
idle, e.g. when it'sloading. This will only happen if the next route has a loader.Here's a reduced test case to illustrate the problem: https://stackblitz.com/edit/github-eve2dr-vm34va?file=src%2Fapp.tsx
What are your thoughts on updating this to save the scroll position even when navigating to a route that doesn't have a loader?