btford / react-palm

Work in progress, docs forthcoming i promise
MIT License
60 stars 7 forks source link

Feat(tasks): Task.all, Task.map, and Task.bimap #9

Closed btford closed 7 years ago

btford commented 7 years ago

Breaking Change:

Task Handlers previously took an array of tasks, and a dispatch. Now they recieve a task delegate, where .success() and .error() are wrapped in the dispatch call by the middleware.

Need to do some more work on teasing apart a task definition from a task execution. Ideally, execution should be opaque to users, but we still need some way to provide action creators.

Closes #6

btford commented 7 years ago

The API names here come from FP. The idea is that we should conform to this spec: https://github.com/rpominov/static-land

Still a couple more things to consider, but this is in the right direction.

balthazar commented 7 years ago

I'm guessing this should be closed.

btford commented 7 years ago

Yep. Thanks pal.