Skip to content

Conversation

tomredman
Copy link

The current docs say to use useEffect() in the root layout, but that can't be done as the root layout is a special case, and is always server component, regardless of the "use client" directive. You cannot use useEffect() in a server component.

The current docs say to use `useEffect()` in the root layout, but that can't be done as the root layout is a special case, and is always server component, regardless of the "use client" directive. You cannot use `useEffect()` in a server component.
@tomredman tomredman requested a review from a team as a code owner September 18, 2025 14:10
@tomredman tomredman requested review from ishamehramixpanel and removed request for a team September 18, 2025 14:10
Copy link

vercel bot commented Sep 18, 2025

@tomredman is attempting to deploy a commit to the Mixpanel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant