2018-01-31 06:55:23 +01:00
|
|
|
import { RealmStore } from '../../_utils/RealmStore'
|
2018-01-31 03:26:13 +01:00
|
|
|
|
2018-01-31 06:55:23 +01:00
|
|
|
class PseudoVirtualListStore extends RealmStore {
|
|
|
|
constructor(state) {
|
|
|
|
super(state, /* maxSize */ 10)
|
2018-01-31 03:26:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const pseudoVirtualListStore = new PseudoVirtualListStore()
|
|
|
|
|
2018-01-31 06:55:23 +01:00
|
|
|
pseudoVirtualListStore.computeForRealm('intersectionStates', {})
|
2018-01-31 03:26:13 +01:00
|
|
|
|
|
|
|
if (process.browser && process.env.NODE_NODE !== 'production') {
|
|
|
|
window.pseudoVirtualListStore = pseudoVirtualListStore
|
|
|
|
}
|
|
|
|
|
|
|
|
export { pseudoVirtualListStore }
|