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
When using MyState's instance someObj.setA(3, 5), etc, I find that the following events are fired:
change:a.x
change:a.y
change (someObj's own change event)
But there's nochange.a fired, which is desired. Because in my app I want to observe MyState's change:a to handle the changes of x and y at the same time, instead of observing change:a.x and change:a.y (which suites other scenarios, though) as independent events.
Is this an issue worth consideration? Or am I using sub-states in a wrong way?
The text was updated successfully, but these errors were encountered:
I'm using
ampersand-state 4.9.1
and have a State defined like this:where
a
is always an instance ofA
:When using
MyState
's instancesomeObj.setA(3, 5)
, etc, I find that the following events are fired:change:a.x
change:a.y
change
(someObj
's own change event)But there's no
change.a
fired, which is desired. Because in my app I want to observeMyState
'schange:a
to handle the changes ofx
andy
at the same time, instead of observingchange:a.x
andchange:a.y
(which suites other scenarios, though) as independent events.Is this an issue worth consideration? Or am I using sub-states in a wrong way?
The text was updated successfully, but these errors were encountered: