-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
Bug report
Shallow routing is working incorrectly when user navigates backward.
Describe the bug
Correctly would be to remember shallow value between current step and previous step.
To Reproduce
- User enters site
- Navigates to a product page (using normal routing) -> user sees information about product
- Changes information tab, url is updated (using shallow routing) -> user sees information from new tab
- Navigates to a product (using normal routing) -> new product information is shown, everything is okay.
- Navigates back -> Next.JS performs shallow routing, user still sees information from product from step 4 (wrong)
Expected behavior
- User enters site
- Navigates to a product page (using normal routing) -> user sees information about product
- Changes information tab, url is updated (using shallow routing) -> user sees information from new tab
- Navigates to a product (using normal routing) -> new product information is shown, everything is okay.
- Navigates back -> Next.JS remembers how was performed routing from step 3 to step 4 and performs normal routing, information about product is reloaded and shown to user.
Metadata
Metadata
Assignees
Labels
No labels