Closed alexlafroscia closed 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
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
cancelAll
does not triggerN
re-renders of the hook (one for each task, since each cancellation would calldispatch
)Closes #15