Skip to content

bug: useIsAuthenticated and useAccount out of sync #3209

@Elfo404

Description

@Elfo404

it seems like there are cases when doing something like

function Component(){
      const isAuthenticated = useIsAuthenticated();
      const me = useAccount(AccountSchema, {...});
     
     return ...
}

isAuthenticated becomes true before me after signing in (using better auth in this case, didn't try other methods), as in the component re-renders in an intermediate state where isAuthenticated is true but me is still the anonymous account before signing in.

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