Skip to content

Commit 988b236

Browse files
committed
Merge pull request reduxjs#1089 from mjethani/doc-fix-2
Use ES6 syntax in fetchPosts()
2 parents 42e7afd + c4c69f3 commit 988b236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced/AsyncActions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Here’s what the state shape for our “Reddit headlines” app might look like
138138
{
139139
id: 42,
140140
title: 'Confusion about Flux and Relay'
141-
},
141+
},
142142
{
143143
id: 500,
144144
title: 'Creating a Simple Application Using React JS and Flux Architecture'
@@ -337,7 +337,7 @@ export function fetchPosts(reddit) {
337337
// It passes the dispatch method as an argument to the function,
338338
// thus making it able to dispatch actions itself.
339339

340-
return function (dispatch) {
340+
return dispatch => {
341341

342342
// First dispatch: the app state is updated to inform
343343
// that the API call is starting.

0 commit comments

Comments
 (0)