Skip to content

Commit

Permalink
Update src/content/reference/react/experimental_taintObjectReference.md
Browse files Browse the repository at this point in the history
Co-authored-by: Xleine <[email protected]>
  • Loading branch information
Yucohny and loveloki authored Oct 7, 2023
1 parent 2e3d6ac commit 306a85e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export async function InfoCard({ user }) {
}
```

理想情况下`getUser` 不应暴露当前用户不应访问的数据。为了防止将来将 `user` 对象传递给客户端组件,我们可以对用户对象进行“标记”:
理想情况下 `getUser` 不应暴露当前用户不允许访问的数据。为了防止将来把 `user` 对象传递给客户端组件,我们可以对用户对象进行“标记”:


```js
Expand Down

0 comments on commit 306a85e

Please sign in to comment.