Async’ly using cross-tree resources in Redux

Kirk Strobeck
1 min readFeb 23, 2017

--

First pass at this post, may evolve over time.

When using a library, first init the library to create an instance, then use that instance throughout your app. Here is how to handle that in Redux.

Create a lib tree, init your libraries there, and use them.

But wait, I want to affect another state tree, not the lib tree! Rad, that’s the whole point of this post.

This example’s goal is to get nearby places, which I have a use-case for in a React Native side project.

places/actions
places/reducers
get_nearby
lib/actions
lib/reducers
use

--

--

No responses yet