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