We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71dec8a commit edf4a57Copy full SHA for edf4a57
src/utils/Subscription.js
@@ -7,7 +7,8 @@ import { getBatch } from './batch'
7
const CLEARED = null
8
const nullListeners = { notify() {} }
9
10
-function createListenerCollection(batch) {
+function createListenerCollection() {
11
+ const batch = getBatch()
12
// the current/next pattern is copied from redux's createStore code.
13
// TODO: refactor+expose that code to be reusable here?
14
let current = []
@@ -83,7 +84,7 @@ export default class Subscription {
83
84
? this.parentSub.addNestedSub(this.handleChangeWrapper)
85
: this.store.subscribe(this.handleChangeWrapper)
86
- this.listeners = createListenerCollection(getBatch())
87
+ this.listeners = createListenerCollection()
88
}
89
90
0 commit comments