Skip to content

feat(firestore): option to automatically clear firestore data from state on logout #557

Open
@apietrzak

Description

@apietrzak

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
After calling firebase.logout() auth is cleared but firestore.data is still existing.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
After login call:
props.firebase.logout();

What is the expected behavior?
firestore.data will be empty like:
Logout from Firebase and delete all data from the store (state.firebase.data and state.firebase.auth are set to null).

Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
Latest

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions