Skip to content

Using 'use client' causes infinite loop requests to the backend interface #87012

@JsonLYH

Description

@JsonLYH

Link to the code that reproduces this issue

https://github.com/JsonLYH/next-core-demo/tree/90b82b52626d5f8c606e2d268dd265e9a0aaedc9/app/(bug)/bug

To Reproduce

Image Image

Current vs. Expected behavior

You shouldn't keep requesting backend interfaces

Provide environment information

"dependencies": {
    "babel-plugin-react-compiler": "^1.0.0",
    "next": "16.0.7",
    "react": "19.2.0",
    "react-dom": "19.2.0"
  },

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

Not sure

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

Other (Deployed)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions