Skip to content

How to used changedKeys? #1056

Answered by radekmie
chiester asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @chiester. What do you mean by using changed instead of changedKeys?

  • changed is a context property, telling whether or not any of the fields have changed (docs).
  • changedKeys is a helper (docs), used internally to calculate changedMap (docs).

I guess that you may want to use changedMap instead. It's how uniforms calculate the changed property of every field (useField call). A field is changed if !!get(changedMap, name) (get is a Lodash function).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chiester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants