alexlafroscia / use-task

A React hook for running and cancelling asynchronous tasks
https://use-task.now.sh
24 stars 1 forks source link

Use reducer for internal state #18

Closed alexlafroscia closed 5 years ago

alexlafroscia commented 5 years ago

Using a reducer internally isn't much different than before, but makes it quite a bit easier to keep track of where changes to the .current object happen.

Todo


Closes #15

vercel[bot] commented 5 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://use-task-git-use-reducer.alexlafroscia.now.sh