Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Declarative hooks for watching and other "WhileInState" operations #2

Open
n8allan opened this issue Nov 25, 2019 · 0 comments

Comments

@n8allan
Copy link
Member

n8allan commented Nov 25, 2019

This avoids the problem that can arise when using, for instance, WatchOtherWhileInState on a superstate, where if the developer forgets to explicitly pass the superstate to the "inState" param, the assumption is made to watch on the sub-state actually being transitioned into, which causes the watch lifetime to be only for the sub-state, not the intended superstate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant