Merge pull request #10087 from sidrong/patch-1

fix: 修复 dispatchInited 可能出现Uncaught (in promise) Error: [mobx-state-tree] You are trying to read or write to an object that is no longer part of a state tree.
This commit is contained in:
hsm-lv 2024-05-06 16:38:05 +08:00 committed by GitHub
commit 9e202bb573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -713,7 +713,7 @@ export default class Form extends React.Component<FormProps, object> {
async dispatchInited(value: any) {
const {data, store, dispatchEvent} = this.props;
if (store.fetching) {
if (!isAlive(store) || store.fetching) {
return value;
}