pinafore/src/routes/_components/list/listStore.js

19 wiersze
413 B
JavaScript

import { RealmStore } from '../../_utils/RealmStore'
import { PAGE_HISTORY_SIZE } from '../../_static/pages'
class ListStore extends RealmStore {
constructor (state) {
super(state, /* maxSize */ PAGE_HISTORY_SIZE)
}
}
const listStore = new ListStore()
listStore.computeForRealm('intersectionStates', {})
if (process.browser) {
window.__listStore = listStore // for debugging
}
export { listStore }