Skip to content

Issues with react server components / NextJS 13.x #3330

Description

@blitzbohne

Description

With the raising use of react server components its hard to use primer on nextjs projects.
The components seem to have heavy dependencies on client components which may not always be neccessary.

The major issue however is that the components should include 'use client' or 'use server' depending on wether they can work on server or not. This would allow to not have to mark a whole page with 'use client' just to use static primer components.

Steps to reproduce

  1. Create new nextjs 13.4 project
  2. Create a server component in app router (regular page)
  3. Import any primer component
  4. Fails as primer is not marking use client / use server

Version

35.25.1

Browser

Chrome, Safari, Firefox, Edge, iOS Safari

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreact

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions