Skip to content

feat: initial form meta - #3003

Merged
logaretm merged 1 commit into
nextfrom
feat/initial-meta
Oct 29, 2020
Merged

feat: initial form meta#3003
logaretm merged 1 commit into
nextfrom
feat/initial-meta

Conversation

@logaretm

Copy link
Copy Markdown
Owner

🔎 Overview

The recent addition of initialErrors limits "show errors on touched" as while the errors are present they won't be displayed, even with validateOnMount enabled. So we need a way to set initial touched and dirty meta flags as well.

This PR adds initialDirty and initialTouched to the <Form /> and useForm() to do just that.

@logaretm
logaretm changed the base branch from master to next October 28, 2020 23:38
@logaretm
logaretm merged commit f7fd407 into next Oct 29, 2020
@logaretm
logaretm deleted the feat/initial-meta branch October 29, 2020 00:58
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.

1 participant