Farming the React XP
• Mark Eschbach
On my identity management system I’ve scrapped together a React + Redux with WebPack SPA. I’ve built out a the many of the components so far but I’m struggling with how to deal with delayed loading. In this particular case I need to retrieve additional details associated with a user. Perhaps this could be accomplished through the action mapping as the second argument to connect
? My concern here would be the second argument logically only needs to be called once. The would be a benenfit in this case because we only desire to load that data initially. Well, it worked to dispatch an action from the dispatch method. Unforunately I’m not sure issuing AJAX requests in the reducers is the correct place to do so, in either the action reducers or the component reducers. Problems to be resolved later.