Skip to content

Commit 214b49f

Browse files
committed
Make sure we show ownProps are passed into props
For #42
1 parent d2a4342 commit 214b49f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

react-docs/source/mutations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Modifying data on the server
2+
title: Mutations
33
order: 11
44
---
55

react-docs/source/queries.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Querying for data
2+
title: Queries
33
order: 10
44
---
55

@@ -193,7 +193,9 @@ const CurrentUserForLayout = gql`
193193
`;
194194

195195
const ProfileWithData = graphql(CurrentUserForLayout, {
196-
props({ data: { loading, currentUser, refetch } }) => ({
196+
// ownProps are the props that are passed into the `ProfileWithData`
197+
// when it is used by a parent component
198+
props({ ownProps, data: { loading, currentUser, refetch } }) => ({
197199
userLoading: loading,
198200
user: currentUser,
199201
refetchUser: refetch,

0 commit comments

Comments
 (0)