You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we first pass an immutable object in the url parameters and then try to add a property to it, we get the TypeError: Cannot create property on string. I expect that the library will not return an error and will give the first values it finds when unpacking.
Conform version
v1.1.4
Steps to Reproduce the Bug or Issue
import { parseWithZod } from '@conform-to/zod'
import { z } from 'zod'
const someSchema = z.object({
someNumber: z.number().min(1).optional(),
someString: z.string().min(1).optional(),
})
const url = new URL('http://localhost/smth?c=name&c.A=somea')
const parsed = parseWithZod(url.searchParams, {
schema: someSchema,
})
console.log(parsed)
The text was updated successfully, but these errors were encountered:
Describe the bug and the expected behavior
If we first pass an immutable object in the url parameters and then try to add a property to it, we get the
TypeError: Cannot create property on string.
I expect that the library will not return an error and will give the first values it finds when unpacking.Conform version
v1.1.4
Steps to Reproduce the Bug or Issue
The text was updated successfully, but these errors were encountered: