未验证 提交 e7a22afe 编写于 作者: K Kenneth Lum 提交者: 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 }`
上级 62967fc6
......@@ -87,7 +87,7 @@ The `context` parameter is an object containing the following keys:
}
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:
}
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册