Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Supabase auth breaks on React 18.3.2 #267

@BenBrewerBowman

Description

@BenBrewerBowman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions