Skip to content

Exclusion from autoEffect #258

Open
Open
@hypo-thesis

Description

@hypo-thesis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions