Skip to content

Conversation

dctalbot
Copy link
Contributor

@dctalbot dctalbot commented Jul 27, 2021

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
This PR refactors a few instances where props were being mutated and this.forceUpdate was being called as a work around. The fix uses lodash's deepClone to create a mutable form value object.

Which issue(s) this PR fixes:
This PR unblocks a couple of hooks conversions since there is no analog for forceUpdate in the functional paradigm.
e.g. #1791

@pnengchu pnengchu self-requested a review July 28, 2021 15:52
@pnengchu pnengchu merged commit 356466b into master Jul 28, 2021
@pnengchu pnengchu deleted the remove-force-update branch July 28, 2021 16:01
This was referenced Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants