actor.getSnapshot().value does not include states with type compound.
(Bug) Expected result:
actor.getSnapshot().value should be a union of all non-compound state value strings as well as objects containing compound states.
This should be the same as actor.getSnapshot().matches which accepts parameters that are the correct union of possible state types that originated from setup().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 to actor.getSnapshot().matches().
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()
.