-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Forms): enhance cleanup routine of fields (#3885)
I noticed a couple of issues due to the fact that we mount/unmount parts without a effect dependency. It was about getting the right content in fields that where removed/added dynamically inside iterate while working on this PR #3877. But I think we should rather pull out these changed and submit by its own PR. I have not checked any examples/demos. But would love if someone checks it for me, especially the error handling in [field compositions](https://eufemia-git-fix-mount-unmount-routine-eufemia.vercel.app/uilib/extensions/forms/base-fields/Composition/) (FieldBlock with nested fields). But in overall, it "should not" have a negative effect on existing implementations.
- Loading branch information
1 parent
a5ff2a9
commit 388e0b2
Showing
7 changed files
with
91 additions
and
119 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
29 changes: 0 additions & 29 deletions
29
packages/dnb-eufemia/src/shared/helpers/__tests__/useUnmountEffect.test.ts
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/dnb-eufemia/src/shared/helpers/useUnmountEffect.ts
This file was deleted.
Oops, something went wrong.