TanStackT
TanStackโ€ข3y agoโ€ข
5 replies
progressive-amaranth

How to share useMutation() return value across components?

Hi guys, I'm just starting out with TSQ!

I have a component that's calling useMutation. However, I want to access its return value (specifically .isPending and .variables) in a faraway component. Is this achievable without prop-drilling or a custom context? Thanks ๐Ÿ™‚
Was this page helpful?