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 72579d1 commit 4516554Copy full SHA for 4516554
examples/react/remix/app/routes/_index/route.tsx
@@ -40,6 +40,7 @@ export async function action({ request }: ActionFunctionArgs) {
40
}
41
42
// Your form has successfully validated!
43
+ return null
44
45
46
export default function Index() {
@@ -48,7 +49,7 @@ export default function Index() {
48
49
const form = useForm({
50
...formOpts,
51
transform: useTransform(
- (baseForm) => mergeForm(baseForm, actionData ?? initialFormState),
52
+ (baseForm) => mergeForm(baseForm, actionData ?? {}),
53
[actionData],
54
),
55
})
0 commit comments