Skip to content

Offline app startup fails to SET_PROFILE, stops at LOGIN action #933

Open
@anujmv

Description

@anujmv

I have enabled firestore offline persistence.
Offline startup fails to SET_PROFILE, Even with redux persist, since the LOGIN action clears the firebaseReducer.profile

log:-

reactReduxFirebase/AUTHENTICATION_INIT_STARTED
reactReduxFirebase/AUTHENTICATION_INIT_FINISHED

reactReduxFirebase/LOGIN
2020-05-11T22:58:13.199Z] @firebase/firestore: Firestore (7.14.3): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unavailable]: The operation could not be completed
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.

firebaseReducer.auth gets loaded from local cache, but SET_PROFILE never gets executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions