Open cyrus25 opened 2 years ago
any update or advice ?
in docs says:
All hooks are built upon the [useMutation] hook, making it super simple to handle loading states, success and errors.
so we basically can use this technic when do some mutation:
https://tanstack.com/query/v4/docs/react/guides/optimistic-updates
it was useful for me, so maybe can be for anyone too
How to implement optimistic updates using useFirestoreDocumentMutation hook?