You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restore 'use client' directives to RSCProvider and RSCRoute
These files MUST be client components because they use client-only React APIs:
- React.createContext and React.useContext (RSCProvider)
- React.Component class (RSCRoute)
The previous commit incorrectly removed 'use client' from these files.
The ESLint rule preventing 'use client' only applies to .server.tsx files,
not to regular .tsx files that need client-side APIs.
Without 'use client', webpack includes these files in the server bundle,
which fails because React's server exports don't include client-only APIs.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments