These are chat archives for orbitjs/orbit.js

Dec 2017
Matthias Orgler
Dec 21 2017 20:03
Is there a way to keep global UI state (like currentProject) in orbit? The special thing about this is that UI state is 1) a singleton object and 2) might only be synced with local storage and not with a remote store.
Dan Gebhardt
Dec 21 2017 21:11
@morgler you could use a Bucket to persist general app state
there are bucket implementations for both IndexedDb and LocalStorage
although buckets are used by sources to persist their (non-data) state, you can also use one directly
I should improve the docs around buckets - but the interface is quite simple
pretty much just async get / set methods to a general purpose state bag