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

Partial suspense key not working #67484

Open
der-daniel opened this issue Jul 5, 2024 · 0 comments
Open

Partial suspense key not working #67484

der-daniel opened this issue Jul 5, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Navigation Related to Next.js linking (e.g., <Link>) and navigation.

Comments

@der-daniel
Copy link

Link to the code that reproduces this issue

https://github.com/der-daniel/partial-suspense-key

To Reproduce

  1. Fire Up the Application
  2. There are two search params key1 and key2
  3. There are two server components which are using the route in /api. The route simply returns the key.
  4. Use the buttons on the page to either change one of the search params or both.

Current vs. Expected behavior

Current behavior:

  • If I change both keys, the suspense triggers both fallback uis for loading the api endpoint inside the server components. Everything is responsive and fast.
  • If I only change one of the keys no fallback ui is triggered and the ui is blocked, i.e. the url only changes after all api requests are finished.

Expected behavior:

  • If I only change one of the keys, I expect only the respective suspense component triggers the fallback ui while the other stays the same. Moreover the ui should not block and wait for the requests to finish.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 18.19.0
  npm: 10.2.3
  Yarn: N/A
  pnpm: 9.4.0
Relevant Packages:
  next: 14.2.4 // Latest available version is detected (14.2.4).
  eslint-config-next: 14.2.4
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.3
Next.js Config:

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

Navigation

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

next dev (local)

Additional context

No response

@der-daniel der-daniel added the bug Issue was opened via the bug report template. label Jul 5, 2024
@github-actions github-actions bot added the Navigation Related to Next.js linking (e.g., <Link>) and navigation. label Jul 5, 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. Navigation Related to Next.js linking (e.g., <Link>) and navigation.
Projects
None yet
Development

No branches or pull requests

2 participants
@der-daniel and others