-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/pipeline): KLUDGE: use react 'key' to reinitialize formik wh…
…en pipeline reverted (#7500) This is a workaround for angular/react interactions. Previously, we had turned on `enableReinitialize` for trigger formik forms. This allowed angular code to revert the pipeline and the changes would flow through through to formik via 'initialValues'. However, turning on that prop had the unwanted side effect of reinitializing the form whenever _anything_ changed. This caused problems with the validation logic. This workaround causes the triggers component to be remounted whenever the pipeline is rolled back.
- Loading branch information
1 parent
5eb7574
commit 20d38f0
Showing
5 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters