You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- This does not work -->
<Toggle as |toggle|>
(toggle.snapshot.matches 'inactive')
</Toggle>
But this does not work with:
Uncaught TypeError: Cannot read properties of undefined (reading 'value')
And respective this(?) is there set to undefined:
(screenshot tests step1, but it's supposed to be inactive in the example above)
I came to this conclusion from an ability to access context on snapshot which works for me:
<Toggle as |toggle|>
{{toggle.snapshot.context.isActive}}
</Toggle>
I do not necessarily care about how do I call state.matches as there is a way, but I wanted to access state.can and possibly other functions, but it does not work for me.
The text was updated successfully, but these errors were encountered:
Hi,
I can see that for xstate matches there is a shorthand in ember-statechart-component:
From the official xstate documentation it seems like it should also work in this way:
But this does not work with:
And respective
this
(?) is there set toundefined
:(screenshot tests
step1
, but it's supposed to beinactive
in the example above)I came to this conclusion from an ability to access context on snapshot which works for me:
I do not necessarily care about how do I call
state.matches
as there is a way, but I wanted to access state.can and possibly other functions, but it does not work for me.The text was updated successfully, but these errors were encountered: