Browse Source

fix: fix the problem when react 18 and strict mode useFormApi get null (#1064)

Co-authored-by: 代强 <[email protected]>
YannLynn 3 years ago
parent
commit
ce9f124458
1 changed files with 0 additions and 1 deletions
  1. 0 1
      packages/semi-ui/form/baseForm.tsx

+ 0 - 1
packages/semi-ui/form/baseForm.tsx

@@ -151,7 +151,6 @@ class Form extends BaseComponent<BaseFormProps, BaseFormState> {
 
     componentWillUnmount() {
         this.foundation.destroy();
-        this.formApi = null;
     }
 
     get adapter(): BaseFormAdapter<BaseFormProps, BaseFormState> {