Skip to content

Commit

Permalink
Merge pull request #4008 from Dem0n3D/patch-1
Browse files Browse the repository at this point in the history
Update recompose.md
  • Loading branch information
hwillson authored Jan 2, 2019
2 parents c2b22bb + 6ca0c37 commit 51f4958
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 @@ -68,7 +68,7 @@ const ErrorComponent = props =>(
)

const setRefetchProp = (propName = "data") =>
withProps(props => ({refetch: props[propName] && props[propName].data}))
withProps(props => ({refetch: props[propName] && props[propName].refetch}))

const enhancedComponent = compose(
graphql(getUser, { name: "user" }),
Expand Down

0 comments on commit 51f4958

Please sign in to comment.