Skip to content

Allow to return from effects callbacks a cleanup callback #18

@RIP21

Description

@RIP21

I want to be able to clean up the timeout/interval created in effect when the store gets destructured.
Unsure if it's useful for any use case, but when the local store is used through the Provider.

Surely I can work around it with regular useEffect but still.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions