Open Osky772 opened 1 year ago
Studio version: 0.60.0 XState version: 4.38.2
Exported machine has actions syntax like
{ "target": "fetchingPage", "actions": { "type": "assignCurrentPage", "params": {} } }
and this syntax is the problem for Typegen - the types are not generated.
From the typegen file
eventsCausingActions: {};
But when I switch to syntax
{ "target": "fetchingPage", "actions": "assignCurrentPage" }
everything works fine.
This issue makes it impossible to import machine from code and then export it back to the project for XState v4 with typegen
Seems like this may be a problem with the machine extractor (cc. @farskid @Andarist)
Studio version: 0.60.0 XState version: 4.38.2
Exported machine has actions syntax like
and this syntax is the problem for Typegen - the types are not generated.
From the typegen file
But when I switch to syntax
everything works fine.
This issue makes it impossible to import machine from code and then export it back to the project for XState v4 with typegen