Replies: 1 comment 1 reply
-
|
did you add the middleware to your store? If you look at the cache entry in the RTK Query tab in the REdux devtools, does it have the tags you expect? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi guys. Can't make
createOrdermutation to trigger invalidation ofgetOrderendpoint.createOrdercreates a new Order object or modifies existing (by either adding new product toproductsInOrderarray or increasingamountproperty of existing array element).The order object looks like this
but for some reason when a new order is created neither
getOrdersnorgetOrderendpoints get refetched and I don't understand why..getOrder'sprovidesTagsid is exactly the same ascreateOrdersinvalidatesTagsid.editOrderanddeleteOrderwork just fine...Is nested objects that get mutated the problem?
How do I make sure
getOrderis invalidated when a neworderis created?Beta Was this translation helpful? Give feedback.
All reactions