Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useDisableNetworkMutation #111

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

HassanBahati
Copy link
Collaborator

This PR adds useDisableNetworkMutation

Copy link

docs-page bot commented Sep 30, 2024

To view this pull requests documentation preview, visit the following URL:

react-query-firebase.invertase.dev/~111

Documentation is deployed and generated using docs.page.

// Verify that network operations fail
const docRef = doc(firestore, "tests", "someDoc");
try {
await getDoc(docRef);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be getDocFromServer to ensure it doesn't read from cache when offline?

…nce getDoc and getDocs will get results from cache until network is restored
@Ehesp Ehesp merged commit e96dde9 into invertase:next Oct 7, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants