Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Consolidating data from different sources(API). React/Redux focused but any input welcome.

Looking for suggestions how to handle this. The project I'm working on now has it's own API for its database, I'd also like to make use of some external APIs and include them in the content.

For example, I have one "page" which is calling my API and twitter already, I'd like to maybe add some things from youtube or anything that makes my app better basically. I've been using componentWillMount method to make those two independent calls before render.

Is there any benefit to consolidating the data from the two sources into a single entity and what would be a method to go about it? Right now I'm not storing data from twitter anywhere, but I figure I probably be should be putting that somewhere for performance reasons.