2 ms·
redux-transform: 1. lets you transform an arbitrary number of fields with an arbitrary number of transformations 2. runs the transformers for each field concu
by papapopper 9y ago
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.