Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase auth breaks on React 18.3.2 #267

Open
BenBrewerBowman opened this issue Aug 5, 2024 · 3 comments
Open

Supabase auth breaks on React 18.3.2 #267

BenBrewerBowman opened this issue Aug 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@BenBrewerBowman
Copy link

BenBrewerBowman commented Aug 5, 2024

Bug report

Describe the bug

I recently updated to React 18.3.2 and the Auth component completely crashed 100%. It seems like it's doing something behind the scenes w/ state management that is breaking in this new version.

Error message: TypeError: Cannot read properties of null (reading 'useState')

To Reproduce

  1. Upgrade an app that uses the Auth component from 18.2.0 or lower to 18.3.2.
  2. Render the Auth component in the UI like: <SupabaseAuth supabaseClient={supabase} />
  3. The auth should crash the page w/ the error: Error message: TypeError: Cannot read properties of null (reading 'useState')

Expected behavior

Auth shuld work w/ React 18.3.2

@BenBrewerBowman BenBrewerBowman added the bug Something isn't working label Aug 5, 2024
@voltuer
Copy link

voltuer commented Aug 27, 2024

Did you even read the notice about this library being abanboned by Supabase?

It's so hard to trust new technology because they abandon their stuff just because they woke up with the wrong leg. Even a big company like this one who made $30 billion investment round, it's so enraging.

@helloromero
Copy link

@voltuer the notice is a bit confusing..... does this mean we can't use Auth via supabase/auth-ui-react anymore?

or will it continue to work

@voltuer
Copy link

voltuer commented Sep 16, 2024

@helloromero I think you can still use it as long as they don't make any breaking update in the API, so i would be careful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants