Skip to content

Commit

Permalink
fix(core): fix unmount remove errors (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Jul 27, 2020
1 parent f335632 commit 3da2765
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/src/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,12 @@ export const createFormExternals = (
syncFormMessages('warnings', published)
}

if (dirtys.visible || dirtys.display || dirtys.editable) {
if (
dirtys.visible ||
dirtys.display ||
dirtys.editable ||
dirtys.unmounted
) {
//fix #682
if (dirtys.unmounted) {
if (supportUnmountClearStates(published.path)) {
Expand Down

0 comments on commit 3da2765

Please sign in to comment.