Skip to content

[PPR] css and font will be reoloaded when server component rerenders #59513

Closed as not planned
@Talent30

Description

@Talent30

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/tender-sanderson-m5fqfq

To Reproduce

  1. Run the dev server
  2. Open the dev page in a new tab
  3. Check the network tab using browser devtool
  4. Start typing in the input box

Current vs. Expected behavior

image
Current: the css file gets reloaded when the search param changes
Expected: this shouldn't happen and will not happen when PPR is off

Verify canary release

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

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 14.0.5-canary.7
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A

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

App Router

Additional context

I use next-usequerystate merely to reproduce this issue easily. This issue still happens even without the lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.staleThe issue has not seen recent activity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions