Skip to content

Commit

Permalink
feat(wx-mobx-react): 添加批量处理逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Jul 2, 2019
1 parent fc02117 commit 43a9924
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/wx-mobx-react/miniprogram_dist/index.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 43a9924

Please sign in to comment.