share mutation state (status)
Hello community, I was wondering if there is a way for me to share my queries state with other components, in this case mutations state?
I know how to invalidate query but I want to show currently pending actions object in a list.
Here is my current approach with useMutationState:


4 Replies
ambitious-aqua•2y ago
Yes that's what useMutationState is for. What isn't working?
gradual-turquoiseOP•2y ago
Hello Dominik, sorry for not realizing you've answered earlier. Thank you. So what happens is that I cant seem to achieve expected behavior mentioned above. All I've managed to do is invalidate and reload whole list of data however I've not been able to change the 'looks' of item being added as its being added if that makes sense.
ambitious-aqua•2y ago
then show a codesandbox reproduction please
gradual-turquoiseOP•2y ago
Will create one as soon as I get a chance and share it with you. I really appreciate your time!:reactquery: