invertase / invertase/tanstack-query-firebase

Query with subscribe enabled makes request after signing out

Open
#57 8 comments 0 reactions 0 assignees View on GitHub
react-query-firebase
Dominant language
TypeScript
Stars
462
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I have a query that lists all documents in a collection that I subscribe on and if I sign out I keep getting a snapshot listener error because I have a rule that only allows the documents to be accessed if signed in. The component where the query is located gets unmounted properly and doesn't re-render after signing out. I have also tried to remove the query using the query client before signing out but that doesn't seem to remove the snapshot listener but it does stop the realtime changes from working.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.