mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 02:37:20 +01:00
11dcaf0cf3
* start on removing pseudo virtual list * rename, refactor * remove unused file * fix the tests * actually fix tests * okay actually fix tests
18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
import { RealmStore } from '../../_utils/RealmStore'
|
|
|
|
class ListStore extends RealmStore {
|
|
constructor (state) {
|
|
super(state, /* maxSize */ 10)
|
|
}
|
|
}
|
|
|
|
const listStore = new ListStore()
|
|
|
|
listStore.computeForRealm('intersectionStates', {})
|
|
|
|
if (process.browser && process.env.NODE_ENV !== 'production') {
|
|
window.listStore = listStore
|
|
}
|
|
|
|
export { listStore }
|