Closed taraldr closed 3 months ago
XState version 5
EventFrom and ContextFrom utilities appear to have stopped working since 5.17.0, always returning never when being passed the typeof a machine.
EventFrom
ContextFrom
never
Expected non-never.
Got never.
https://stackblitz.com/edit/vitejs-vite-qubngj?file=src%2Fmain.ts&view=editor
No response
Quick workaround for events: use EventFromLogic instead of EventFrom
EventFromLogic
Investigating this 🔍
XState version
XState version 5
Description
EventFrom
andContextFrom
utilities appear to have stopped working since 5.17.0, always returningnever
when being passed the typeof a machine.Expected result
Expected non-
never
.Actual result
Got
never
.Reproduction
https://stackblitz.com/edit/vitejs-vite-qubngj?file=src%2Fmain.ts&view=editor
Additional context
No response