Closed amelon closed 6 years ago
The fix is in master
and will be in the next release. This is related to #195
Hi @davidkpiano, using master
the error is now No implementation found for action type 'xstate.assign'
@simlrh - Just pushed, can you pull and try again now?
Important to note here too that trying to directly send an assign
action...
service.send({ type: 'xstate.assign', ... })
will (probably) produce the same warning and have no effect. This is on purpose; assignment should be done through actions (i.e., part of your statechart) rather than events (which is more of an imperative approach) otherwise it defeats the purpose of the statechart, as anything can change at any time.
Yes, seems to be the expected result now, thank you very much. Regarding sending assignments as actions rather than events - the original reporter's code listing is doing it the correct way, is that right?
Yes, it's correct, because assign
is done through actions.
Closing as this is fixed in master
Bug or feature request?
bug using version 4.0.0-4.0.1.
It worked previously on 4.0.0-13 and 4.0.0-15.
Description:
using
assign
makesaction
"invisible".(Bug) Expected result:
action
should be recognized(Bug) Actual result:
Here result with exemple on context documentation:
Here is the code
You can find code here.