Skip to content

Guide on resetting local persistence on user sign out #636

@benaiahbarango

Description

@benaiahbarango

Looking for some help/guidance with clearing the local persistence in react native async storage when a user signs out

Currently I have to manually clear cache and reload the app after signing in with a new user to delete persisted data from the previous user

I call this function after signing out via the supabase sdk

const noteState$ = syncState(notes$);

await noteState$.clearPersist();

But when I sign in with a new user, the old data is still visible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions