diff --git a/designable/antd/playground/template.ejs b/designable/antd/playground/template.ejs index 32b1f1ea52b..d85cc29839c 100644 --- a/designable/antd/playground/template.ejs +++ b/designable/antd/playground/template.ejs @@ -11,5 +11,4 @@ - \ No newline at end of file diff --git a/designable/antd/playground/webpack.base.ts b/designable/antd/playground/webpack.base.ts index 54db4535217..d27c65630b1 100644 --- a/designable/antd/playground/webpack.base.ts +++ b/designable/antd/playground/webpack.base.ts @@ -43,7 +43,6 @@ export default { alias: getWorkspaceAlias(), }, externals: { - '@formily/reactive': 'Formily.Reactive', react: 'React', 'react-dom': 'ReactDOM', moment: 'moment', diff --git a/packages/core/src/models/Form.ts b/packages/core/src/models/Form.ts index 70798325a6c..a5afc36d7cf 100644 --- a/packages/core/src/models/Form.ts +++ b/packages/core/src/models/Form.ts @@ -601,6 +601,7 @@ export class Form { } onUnmount = () => { + this.disposers.forEach((dispose) => dispose()) this.query('*').forEach((field) => field.dispose()) this.unmounted = true this.fields = {}