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

Exclusion from autoEffect #258

Open
hypo-thesis opened this issue May 7, 2021 · 0 comments
Open

Exclusion from autoEffect #258

hypo-thesis opened this issue May 7, 2021 · 0 comments
Labels

Comments

@hypo-thesis
Copy link

As React-easy-state uses autoEffect to make a reactive function I wonder if there is a way to exclude one of the store elements included in the autoEffect as such :

autoEffect(() => store.title === true && (store.name = 'test'))
with the above example any change to store.name also triggers the autoEffect. I am looking for a way to have this reactive function run only upon the change to store.title and not store.name

@hypo-thesis hypo-thesis added the bug label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant