Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel Routes often lead to unexpected routing behavior #58201

Open
1 task done
magnusriga opened this issue Nov 8, 2023 · 2 comments
Open
1 task done

Parallel Routes often lead to unexpected routing behavior #58201

magnusriga opened this issue Nov 8, 2023 · 2 comments
Labels
bug Issue was opened via the bug report template.

Comments

@magnusriga
Copy link

magnusriga commented Nov 8, 2023

Link to the code that reproduces this issue

https://github.com/magnusriga/app-playground

To Reproduce

  1. Start app: next dev
  2. Click on the Impressions link under the @views slot
  3. Click on the Home link under the @views slot
  4. Click on the Demographics link under the @Audience slot
  5. Click on the Home link under the @Audience slot
  6. Watch that last click take the children slot back to the /impressions route
  7. Click on the Home link under the @Audience slot one more time
  8. Watch that last click take the children slot back to the / (home) route

Current vs. Expected behavior

Sometimes it changes slots other than the one navigated in, to seemingly incorrect places. See steps above to reproduce one such case.

Beyond the example given in the "To Reproduce" section, it often exhibits odd behavior. Run the dev server and click around for a while and you will soon enough see the oddities. I.e. if you continue to click around for a while, it will start changing routes in more than one slot, when clicking links inside another slot.

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Running next's own playground with the latest package versions, in a dev container.

Which area(s) are affected? (Select all that apply)

App Router

Additional context

No response

@magnusriga magnusriga added the bug Issue was opened via the bug report template. label Nov 8, 2023
@maxch-aa
Copy link

maxch-aa commented Nov 8, 2023

I can reproduce the issue. A related issue: #58180

@magnusriga
Copy link
Author

@jw-vercel , or someone else from the team, when you have a minute, could you please confirm (or reject) that this is indeed a bug?

It seems Parallel Routes is not working as it should, which is a problem for us and other companies relying on stable Next.js features in production.

Thanks a million!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants