mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
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:
commit
9e202bb573
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user