Skip to content

Commit

Permalink
Fix typos in recompose.md (apollographql#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorensr authored and James Baxley committed Jan 29, 2018
1 parent e58c3e6 commit 0fa8e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/recipes/recompose.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const enhancedComponent = compose(

The above works well if we just want something to happen at component mount time.

Lets define another more advanced usecase, for example I am using `react-select` to let user pick an option from the results of a query. I want to always display the react-select, which has its own loading state indicator. The, I want to automatically select predefined option after query finish fetching.
Lets define another more advanced usecase, for example I am using `react-select` to let user pick an option from the results of a query. I want to always display the react-select, which has its own loading state indicator. Then, I want to automatically select the predefined option after the query finishes fetching.

There is one special thing we need to handle if we want to fetch for every component instance with the default fetchPolicy, we need to be aware that the query can skip loading state when data is already in the cache. That would mean we need to handle `networkStatus === 7` on mount.

Expand Down

0 comments on commit 0fa8e8d

Please sign in to comment.