react-easy-state icon indicating copy to clipboard operation
react-easy-state copied to clipboard

Exclusion from autoEffect

Open hypo-thesis opened this issue 4 years ago • 0 comments

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 avatar May 07 '21 09:05 hypo-thesis