Mobx-react 控制台警告相关观察者

Mobx-react console warning related observer

当我尝试 运行 我的反应代码时,我收到警告,我有 运行 'npm run eject' 并更新 package.js 以使装饰器在反应中工作,它是工作正常但我在控制台中收到警告

[MobX] You haven't configured observer batching which might result in unexpected behavior in some cases. See more at https://github.com/mobxjs/mobx-react-lite/#observer-batching

import {  observable, computed, action, when  } from 'mobx';

class TodoStore {
    @observable todos = [];
    @observable filter = "";
}

以上是我的代码,我是 mobx 的新手并做出反应

在父子组件的更新顺序方面存在一些边缘情况。 尝试将其添加到文件中。

import 'mobx-react-lite/batchingForReactDom'