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
Uses router.push to navigate to the same URL (the URL remains unchanged).
Switches the country context, affecting how the data is fetched and displayed.
Triggers a data refresh via router.refresh to reflect the updated country context.
Problem:
When disableSameUrl=false, the progress bar continues to run indefinitely during this navigation process. We expect the progress bar to stop after the data is refreshed, but currently there is no way of doing this.
Expected Behavior:
The progress bar should stop once the data refresh is complete, even when navigating to the same URL with disableSameUrl=false.
The text was updated successfully, but these errors were encountered:
lunadelaet
changed the title
Improve Progress Bar Handling for Same URL Navigation When disableSameUrl=false
Improve progress bar handling for same URL navigation when disableSameUrl=false
Oct 24, 2024
Context:
We have a country switcher component that:
router.push
to navigate to the same URL (the URL remains unchanged).router.refresh
to reflect the updated country context.Problem:
When
disableSameUrl=false
, the progress bar continues to run indefinitely during this navigation process. We expect the progress bar to stop after the data is refreshed, but currently there is no way of doing this.Expected Behavior:
The progress bar should stop once the data refresh is complete, even when navigating to the same URL with
disableSameUrl=false
.The text was updated successfully, but these errors were encountered: