We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e86da commit 4993dd3Copy full SHA for 4993dd3
docs/start/framework/testing.md
@@ -17,7 +17,8 @@ Consider a login form component that relies on `useActionData`
17
import { useActionData } from "react-router";
18
19
export function LoginForm() {
20
- const { errors } = useActionData();
+ const actionData = useActionData();
21
+ const errors = actionData?.errors;
22
return (
23
<Form method="post">
24
<label>
0 commit comments