Skip to content

faste.trap to react to state changesΒ #17

@theKashey

Description

@theKashey

faste.trap(['stateKey'],['phase'], callback) - allmost useEffect, but trap.

faste.trap(['count'],['active'], (state, transitTo) => state.count>3 && transitTo('overflow');

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