react-oauth2-pkce icon indicating copy to clipboard operation
react-oauth2-pkce copied to clipboard

Bug: Mark react code that need to run on client side with 'use client'

Open soofstad opened this issue 1 year ago • 4 comments

Code that need to be rendered on client should be marked with 'use client'. See https://react.dev/reference/rsc/use-client#using-third-party-libraries for details.

This will ensure compatibility with frameworks like Nextjs, and react projects using server-side-rendering.

soofstad avatar Oct 23 '24 12:10 soofstad

Does this mean that every related file needs that, or just AuthContext.tsx, since that's the application interface?

sebastianvitterso avatar Oct 24 '24 05:10 sebastianvitterso

This is all a bit new to me. But should only be needed in AuthContext as the rest is included in that.

soofstad avatar Oct 24 '24 06:10 soofstad

Stale issue message

github-actions[bot] avatar Dec 23 '24 20:12 github-actions[bot]

Before slapping "use client" everywhere, we should look into this issue: https://github.com/vercel/next.js/issues/74585#issuecomment-2579578612

I still think adding "use client" to the context will be sufficient, as that is the entry point, but worth looking into.

sebastianvitterso avatar Jan 09 '25 13:01 sebastianvitterso

Stale issue message

github-actions[bot] avatar Mar 10 '25 20:03 github-actions[bot]

Stale issue message

github-actions[bot] avatar May 10 '25 20:05 github-actions[bot]

Stale issue message

github-actions[bot] avatar Jul 23 '25 20:07 github-actions[bot]