Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@conform-to/validitystate does not work with library #586

Open
bitofbreeze opened this issue Apr 17, 2024 · 1 comment
Open

@conform-to/validitystate does not work with library #586

bitofbreeze opened this issue Apr 17, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@bitofbreeze
Copy link

Describe the bug and the expected behavior

For example,

const [form, fields] = useForm({
// This not only syncs the error from the server
// But is also used as the default value of the form
// in case the document is reloaded for progressive enhancement
lastResult,

// To derive all validation attributes
constraint: constraints,
onValidate({ formData }) {
	return parse(formData, { constraints,
		formatError });
},
});

gives type errors.

And the field states are not changed to error.

Conform version

1.1.0

Steps to Reproduce the Bug or Issue

See above

What browsers are you seeing the problem on?

Chrome

Screenshots or Videos

No response

Additional context

No response

@edmundhung
Copy link
Owner

I don't have time to maintain this package at the moment. But I would happy to accept any PR that make this happen :)

@edmundhung edmundhung added the help wanted Extra attention is needed label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants