supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
486 stars 120 forks source link

Supabase auth breaks on React 18.3.2 #267

Open BenBrewerBowman opened 1 month ago

BenBrewerBowman commented 1 month ago

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

voltuer commented 1 week ago

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 commented 1 week ago

@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