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

Great tutorial, but could there be an alternate react project that doesn't use async actions #106

Open
ceres629 opened this issue Aug 2, 2016 · 2 comments

Comments

@ceres629
Copy link

ceres629 commented Aug 2, 2016

Could be just me trying to cut corners but I found that the introduction of async actions seemed to make the tutorial take quite a bit more time to understand and as a complete beginner to react/redux I wanted to skip async actions and first understand how regular actions and react work.

However because the final project tying everything together with React uses async actions. I was compelled to go back to the async actions section. Its not a big deal, you explained it well and i understood it, it just felt it would be better as an optional section and wonder if there is a specific reason you introduced it that maybe as a beginner isn't obvious to me.
Thanks for the great tut!

@carlostighe
Copy link

I havent used react but JavaScript frameworks revolve around async actions, thats how they retrieve the data they use.

@happypoulp
Copy link
Owner

Hi,

It's true that there is no specific reason to use async actions for the last example. However since it's a very basic pattern that you will need when trying to build a real application, I thought that it might worth using it in the final example. It's also quite useful to illustrate the possibility of doing some optimistic update of your UI while waiting for an async response from a server (using the *_REQUEST action). However, you're right that the last example might deserve a simple sync action alongside the async one, thanks for the suggestion, I will try to modify it! I'll leave this issue open until then to remind me to do so.

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

3 participants