Jordan (UNCVRD)
Jordan (UNCVRD)
TtRPC
Created by Jordan (UNCVRD) on 10/30/2022 in #❓-help
How to execute mutation outside of react context?
unable to use mutations tho
18 replies
TtRPC
Created by Jordan (UNCVRD) on 10/30/2022 in #❓-help
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
TtRPC
Created by Jordan (UNCVRD) on 10/30/2022 in #❓-help
How to execute mutation outside of react context?
interesting! however im also trying to stay away from generators 😬 (had "lots" of fun with those during my graphql days lol)
18 replies
TtRPC
Created by Jordan (UNCVRD) on 10/30/2022 in #❓-help
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 anymore
18 replies