Skip to content

Exception 'Calls to setPersistenceEnabled must be made before any other usage of FIRDatabase instance.' was thrown while invoking enablePersistence on target FirestackDatabase with params #216

@vivekmago

Description

@vivekmago

I cannot get persistence to work have the following code in my index file but it keeps cribbing about the error.. pls help what am I doing wrong...

const firestack = new Firestack();

firestack.onReady(()=> {
	firestack.database.setPersistence(true);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions