1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-13 02:37:20 +01:00
Pinafore-Web-Client-Frontend/routes/_components/list/listStore.js
Nolan Lawson 11dcaf0cf3
Remove PseudoVirtualList (#385)
* start on removing pseudo virtual list

* rename, refactor

* remove unused file

* fix the tests

* actually fix tests

* okay actually fix tests
2018-06-09 22:55:58 -07:00

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 }