Jordan (UNCVRD)
How to execute mutation outside of react context?
yea definitely is a common issue, weird there isn't a unified solution that doesnt feel like a workaround quite yet. I'm leaning towards just creating a duplicate vanilla router for now 🤔
18 replies
How to execute mutation outside of react context?
Thanks yea - I have tried this approach in the past but it's quite frustrating having to redefine the queries/mutations every time I need to re-use a state machine. It would really be great to be able to define all these actions hook-less within the machine :/
At a higher level, I guess I'm also just confused why react-query exposes a
fetch
method but not a mutate
method anymore18 replies