From 43a992460b5aaa6c846426945c9adbca5fb83801 Mon Sep 17 00:00:00 2001 From: ykforerlang <1527997464@qq.com> Date: Tue, 2 Jul 2019 16:28:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(wx-mobx-react):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wx-mobx-react/miniprogram_dist/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/wx-mobx-react/miniprogram_dist/index.js b/packages/wx-mobx-react/miniprogram_dist/index.js index 9edd06a..921f1ec 100644 --- a/packages/wx-mobx-react/miniprogram_dist/index.js +++ b/packages/wx-mobx-react/miniprogram_dist/index.js @@ -1,6 +1,13 @@ import { spy, configure, getDebugName } from "@areslabs/wx-mobx" import { Component } from "@areslabs/wx-react" +import { unstable_batchedUpdates as rnBatched } from "@areslabs/wx-react-native" + +if (!Component) throw new Error("mobx-react requires React to be available") +if (!spy) throw new Error("mobx-react requires mobx to be available") + +configure({ reactionScheduler: rnBatched }) + export { observer, Observer,