invalidateQueries not functioning in my app #2076
Unanswered
MikeBish13
asked this question in
Q&A
Replies: 1 comment 7 replies
-
first thing that pops up is that you create the
all the examples to it outside to have a stable client. The client holds the cache, so that will delete all your data ;) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would somebody be willing to take a look at the following app and possibly point out where I'm going wrong (newbie to React Query)? https://codesandbox.io/s/priceless-waterfall-k085q
It's an app to add/edit/update/delete invoices. My issue is within InvoiceForm.js when a user adds or updates an invoice. I am using useMutation and invalidateQueries as per the docs, but the individual invoice or the list of invoices don't seem to be updating.
Any help much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions