bietkul / react-reactive-form

Angular like reactive forms in React.
MIT License
309 stars 32 forks source link

Props rendering bug #69

Closed vforv closed 3 years ago

vforv commented 3 years ago

I trying to generate new FieldControl from props, but props late inside FormGroup component.

For example if I do like this:

<FieldGroup
            control={this.fg}
            render={({ get, invalid }) => {
console.log(this.props.formFields)

this.props.formFields will show previous value not current one

bietkul commented 3 years ago

Set strict prop as false in FieldGroup