final-form / final-form/react-final-form

[Feature Request] Add new prop to specify changes to specific form fields

Open
#1,021 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?

Feature Request

### What is the current behavior?
Currently onChange handler on FormSpy component gets invoked for changes in any form field
```
{
console.log('Form validity changed to', props.valid)
}}
/>
```

### What is the expected behavior?
We can have a new configuration or prop to form spy which will help us track changes to only specific form fields.
```
{
console.log('Form validity changed to', props.valid)
}}
/>
```
### Sandbox Link

### What's your environment?

```
"react-final-form": "6.5.9"
"react-final-form-arrays": "3.1.4"
"next": "12.1.6"
"react": "17.0.0"
"eslint": "8.15.0",
"@typescript-eslint/eslint-plugin": "5.23.0"

```
### Other information
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.