Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading remote data #8

Open
ryanbrainard opened this issue Jan 6, 2016 · 9 comments
Open

Loading remote data #8

ryanbrainard opened this issue Jan 6, 2016 · 9 comments

Comments

@ryanbrainard
Copy link

Love the guide. Wish I had this when I was getting started.

I would suggest adding something about different options for loading data from the server. I have found that a lot of guides punt on this because React and most of libraries in the ecosystem are a client-side technologies so loading remote data is (kind of) out of scope, but then it is the one of the first challenges people run into when building real world applications. I find that people either end up doing AJAX directly in the component as suggested in Load Initial Data via AJAX, which works on a small scale, but doesn't really scale and can start to get messy, or they end up diving into the deep end with Flux and try doing data loading there, which multiplies the challenges for a beginner. Even the first response to your tweet hit on this as well.

At the risk of tooting my own horn, I ran into a lot of these same problem myself and ended up releasing React Refetch as an alternative. A lot of people have found it helpful for applications just need to load data without diving head first into Flux, and I think it could be helpful for beginners. Of course this is not the only way to do it, and I'd like to see your guide mention a few different alternatives for dealing with remote data.

@joelataylor
Copy link

+1

8 similar comments
@jaredpalmer
Copy link

+1

@jbthummar
Copy link

+1

@gugahoi
Copy link

gugahoi commented Jan 21, 2016

+1

@alexhawkins
Copy link

+1

@jerrylau91
Copy link

+1

@seripap
Copy link

seripap commented Mar 3, 2016

+1

@rishipuri
Copy link

+1

@morganlegal
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants