actor.getSnapshot().value
does not contain compound
state types
#4925
Labels
actor.getSnapshot().value
does not contain compound
state types
#4925
Bug or feature request?
Bug
Description:
actor.getSnapshot().value
does not include states with typecompound
.(Bug) Expected result:
actor.getSnapshot().value
should be a union of all non-compound
state value strings as well as objects containingcompound
states.This should be the same as
actor.getSnapshot().matches
which accepts parameters that are the correct union of possible state types that originated fromsetup().createMachine()
.(Bug) Actual result:
actor.getSnapshot().value
only contains a union of non-compound
state strings.(Bug) Potential fix:
Make the type of
actor.getSnapshot().value
match the type of the input parameter toactor.getSnapshot().matches()
.The text was updated successfully, but these errors were encountered: