React-final-form: Property 'pristine' does not exist on type 'FormRenderProps'

Created on 19 Jun 2019  路  5Comments  路  Source: final-form/react-final-form

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

Property 'pristine' does not exist on type 'FormRenderProps'. when rendering with TypeScript ^3.5.2 and React ^16.8.6

What is the expected behavior?

pristine is used in the examples but does not appear in FormRenderProps

Sandbox Link

image

What's your environment?

{
  "react-final-form": "^4.1.0",
  "type-script": "^3.5.2",
  "react": "^16.8.6",
  "react-scripts": "^3.0.1"
}

Other information

All 5 comments

same issue.

same issue.

Hmm... You didn't specify the version of final-form you're using, and that's the important bit of information, but it certainly seems to be fine with the latest versions (see line 48).

FormRenderProps extends FormState, which has pristine.

Thanks updating from 4.15.0 to 4.16.1 fixed this issue

image

Great!

Plus the latest version(s) of RFF have some fun Typescript features.

Was this page helpful?
0 / 5 - 0 ratings