I'm using xstate with react and have provided toast as an action. Let's say I have several different invoke failures, each with their own error message. I can provide fetch1FailureToast, mutateFailureThingToast, but I was wondering if I could just provide toast and have the machine define actions that call toast itself. Is that possible?
Sorry for all the questions. Think I'm wrapping up soon. (Will probably have several more after the v5 typegen stuff, though 😬 )