News for hackers. Stuff that matters.

papapopper

Re:Async friendly transformation middleware for Redux on Wednesday July 05, 2017 @03:59AM (#14700626)
Noted. I may add seperate JS documentation.
Re:Async friendly transformation middleware for Redux on Wednesday July 05, 2017 @03:52AM (#14700605)
redux-transform: 1. lets you transform an arbitrary number of fields with an arbitrary number of transformations 2. runs the transformers for each field concurrently

It is true that there are other opportunities to transform actions, but you would have to implement the logic to perform arbitrary transformations. You can use async/await to mix async and sync logic, but you will have to be careful about concurrency. With redux-transform, you can just focus on implementing transformers, and specifying which ones to perform.

redux-transform is intended to complement other middleware. You can use it in conjunction with both redux-thunk and redux-promise.

Re:Async friendly transformation middleware for Redux on Wednesday July 05, 2017 @12:46AM (#14700025)
Re:Async friendly transformation middleware for Redux on Tuesday July 04, 2017 @11:35PM (#14699817)
redux-transform is a general transformation middleware.

You can use it to transform an API response. But more intriguingly you can use APIs to transform an action.