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 b19e0b9 commit 985f8c6Copy full SHA for 985f8c6
docs/start/framework/react/server-functions.md
@@ -98,7 +98,7 @@ const UserSchema = z.object({
98
})
99
100
export const createUser = createServerFn({ method: 'POST' })
101
- .inputValidator((data) => UserSchema.parse(data))
+ .inputValidator(UserSchema)
102
.handler(async ({ data }) => {
103
// data is fully typed and validated
104
return `Created user: ${data.name}, age ${data.age}`
0 commit comments