Unverified Commit e7a22afe authored by Kenneth Lum's avatar Kenneth Lum Committed by GitHub

When there is data already, the props is props: { data } (#23003)

When there is data already, the props is props: { data }
Would be better if the `props: { }` part is `props: { data }`
parent 62967fc6
...@@ -87,7 +87,7 @@ The `context` parameter is an object containing the following keys: ...@@ -87,7 +87,7 @@ The `context` parameter is an object containing the following keys:
} }
return { return {
props: {}, // will be passed to the page component as props props: { data }, // will be passed to the page component as props
} }
} }
``` ```
...@@ -111,7 +111,7 @@ The `context` parameter is an object containing the following keys: ...@@ -111,7 +111,7 @@ The `context` parameter is an object containing the following keys:
} }
return { return {
props: {}, // will be passed to the page component as props props: { data }, // will be passed to the page component as props
} }
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment