Kaynağa Gözat

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

Co-authored-by: 代强 <[email protected]>
YannLynn 3 yıl önce
ebeveyn
işleme
ce9f124458
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  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> {