Skip to content

Commit

Permalink
Update src/content/reference/react-dom/hooks/useFormStatus.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 20, 2023
1 parent bb17500 commit 4f406b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/hooks/useFormStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,6 @@ export async function submitForm(query) {
`useFormStatus` 仅会返回父级 `<form>` 的状态信息。
如果调用 `useFormStatus` 的组件未嵌套在 `<form>` 中,`status.pending` 总是返回 `false`。请验证 `useFormStatus` 是否在一个 `<form>` 元素的子组件中调用。
如果调用 `useFormStatus` 的组件未嵌套在 `<form>` 中,`status.pending` 总是返回 `false`。请验证 `useFormStatus` 是否在 `<form>` 元素的子组件中调用。
`useFormStatus` 不会追踪同一组件中渲染的 `<form>` 的状态。参阅 [陷阱](#useformstatus-will-not-return-status-information-for-a-form-rendered-in-the-same-component) 以了解更多详细信息。

0 comments on commit 4f406b6

Please sign in to comment.