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

Add reValidateMode prop #125

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Add reValidateMode prop #125

merged 1 commit into from
Dec 8, 2022

Conversation

felipefreitag
Copy link
Contributor

Closes #30

@netlify
Copy link

netlify bot commented Dec 8, 2022

Deploy Preview for remix-forms canceled.

Name Link
🔨 Latest commit 1ad7741
🔍 Latest deploy log https://app.netlify.com/sites/remix-forms/deploys/6391f6efa92bbb0008eae441

Copy link
Contributor

@diogob diogob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@diogob diogob merged commit 45abcd0 into main Dec 8, 2022
@diogob diogob deleted the add-revalidate-mode-prop branch December 8, 2022 15:56
@@ -98,6 +98,10 @@ type FormProps<Schema extends FormSchema> = ComponentMappings & {
component?: FormComponent
fetcher?: FetcherWithComponents
mode?: keyof ValidationMode
reValidateMode?: keyof Pick<
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the casing in revalidateMode is more of a common sense even though it might be wrong =)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer that too, but RHF uses this case.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add revalidateMode prop to Form
4 participants