Using a generated object as input setup({...}).createMachine #5110
-
I am trying to generate the object passed to createMachine at runtime, and i thought i could just save a base config, mutate it as needed, and then pass it to create machine. however i am getting completely swamped in type errors even doing a basic proof of concept (extracting the json object i had passed into create machine to a variable and then just passing that variable into create machine). Im really struggling with how to type the param passed into create machine, any help would be greatly appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please share what you have come up with so far. It will take us less time to figure out how to help you with some initial code at hand. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
This works pretty well: TS plaground