#Newbie - cant get `invoke` to invoke
1 messages · Page 1 of 1 (latest)
I originally copied it from https://xstate-catalogue.com/machines/confirmation-dialog. And I've tried to upgrade it to v5.
What is "off" about it?
The machine definition doesn't go in setup(…) - the machines in XState Catalogue are for v4
Sorry for the confusion
Yes, I realize the Catalogue is for v4. I'm trying to upgrade this example.
Maybe I'm mistaken, but I'm sure I read that the types for the machine go into the setup().
Ok, I've started again. Hopefully this one is v5 compliant.
However, again, the invoke is not being invoked.
https://gist.github.com/magick93/1e2bdaa54cfbd24ed08d9c8e9b39b47b