Skip to content

useAction hook #8

@alacret

Description

@alacret

A Hook that takes a Promise, and 2 callbacks for success, and error, and return a handler to execute the promise.

const [actionHandler, loading, {data, error}] = 
     useAction(promiseFunction, (data)=> {}, (error)=> {}, {renderOnStart:true/false, callOnEffect:true/false});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions