We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42e7afd + c4c69f3 commit 988b236Copy full SHA for 988b236
docs/advanced/AsyncActions.md
@@ -138,7 +138,7 @@ Here’s what the state shape for our “Reddit headlines” app might look like
138
{
139
id: 42,
140
title: 'Confusion about Flux and Relay'
141
- },
+ },
142
143
id: 500,
144
title: 'Creating a Simple Application Using React JS and Flux Architecture'
@@ -337,7 +337,7 @@ export function fetchPosts(reddit) {
337
// It passes the dispatch method as an argument to the function,
338
// thus making it able to dispatch actions itself.
339
340
- return function (dispatch) {
+ return dispatch => {
341
342
// First dispatch: the app state is updated to inform
343
// that the API call is starting.
0 commit comments