question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dirtyFieldsSinceLastSubmit` is always undefined.

See original GitHub issue

Are you submitting a bug report or a feature request?

Bug report. I think.

What is the current behavior?

dirtyFieldsSinceLastSubmit is always undefined, but dirtySinceLastSubmit returns the expected boolean value.

What is the expected behavior?

dirtyFieldsSinceLastSubmit should be an object full of booleans, with a value of true for each field that has a different value from the one when the form was last submitted.

Sandbox Link

https://final-form.org/docs/react-final-form/examples/submission-errors I don’t have a sandbox set up. If you add dirtyFieldsSinceLastSubmit to the destructured arguments in the render prop function and console.log it within that same function, it will always return undefined, even after a submission.

What’s your environment?

RFF 6.3.3 FF 4.18.5 Node 10.15.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
ianqueuecommented, Dec 30, 2019

@erikras - any plans on the next patch/minor release? This feature is in the documentation but absent from the latest release and is now in master. thanks.

1reaction
vmkarpenkocommented, Jan 21, 2020

@erikras Do you have any plans for release this fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Final Form Docs – `FormState`
undefined if none are active. dirty. boolean. true if the form values are different from the values it was initialized with.
Read more >
Cannot read property 'submit' of undefined - React
I do not understand why such a message appears. This is my Wizard component. import { Form as FinalForm } from 'react-final ...
Read more >
Incident Response - Hybrid Analysis
Note: This method *always* returns an array. If no valid value can be determined the * array will be empty, otherwise it will...
Read more >
CHANGELOG.md · 邹昊坤/marmelab-react-admin - Gitee.com
Fix Custom Menu doesn't always receive onMenuClick prop (5435) (fzaninotto) ... new FinalForm form state property dirtyFieldsSinceLastSubmit (3959) (MiMo42) ...
Read more >
react-final-form: Versions | Openbase
#400 Passing null served the purpose of disabling the default parse and format ... Note: it will still always run the latest validation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found