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 loading error with app dir (reproduced) #66939

Closed
tianhuil opened this issue Jun 16, 2024 · 3 comments
Closed

Parallel Routes loading error with app dir (reproduced) #66939

tianhuil opened this issue Jun 16, 2024 · 3 comments
Labels
bug Issue was opened via the bug report template.

Comments

@tianhuil
Copy link

tianhuil commented Jun 16, 2024

Link to the code that reproduces this issue

https://github.com/tianhuil/app-directory-test

To Reproduce

  1. Check out https://github.com/tianhuil/app-directory-test
  2. Run bun run dev and goto /load
  3. You should see the following movie.
Screen.Recording.2024-06-16.at.4.40.56.PM.mov

Current vs. Expected behavior

I have slots that load in Zero, One, Two, and Three seconds. I expect each one to load iteratively.

image

Instead, we load the "generic loading layout" (the layout for the parent component) until "One" loads so "One"'s loading state is not shown. Then, the individual loaders for "Two" and "Three" will be shown correctly.

What's odd is that the "Zero" slot actually waits for a little bit (it loads after 1 ms), and even though it is rendered, the "One" slot refuses to load loading state and still triggers the parent loading state.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:05 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6031
Binaries:
  Node: 20.12.2
  npm: 10.5.0
  Yarn: 4.1.1
  pnpm: 9.3.0
Relevant Packages:
  next: 14.1.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.2
Next.js Config:
  output: N/A

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

Not sure

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

next dev (local)

Additional context

See also:
#49243
#59463
#49588

@tianhuil tianhuil added the bug Issue was opened via the bug report template. label Jun 16, 2024
@tianhuil tianhuil changed the title [Example repo] Parallel Routes loading error with app dir Parallel Routes loading error with app dir (reproduced) Jun 16, 2024
@syi0808
Copy link
Contributor

syi0808 commented Jun 18, 2024

I think it fixed by version 14.2.4

@tianhuil
Copy link
Author

tianhuil commented Jun 20, 2024

Thank you @syi0808 -- I just updated the repo and confirmed it's working

@ztanner
Copy link
Member

ztanner commented Jun 30, 2024

Thank you @syi0808 -- I just updated the repo and confirmed it's working

Great! I will close this issue then. Don’t hesitate to open a new one if you encounter a new bug.

@ztanner ztanner closed this as completed Jun 30, 2024
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

3 participants