* support libraryItems promise for `updateScene()` and use `importLibrary` * fix typing for `getLibraryItemsFromStorage()` * remove `libraryItemsFromStorage` hack if there was a point to it then I'm missing it, but this part will be rewritten anyway * rewrite state handling (temporarily removed loading states) * add async support * refactor and deduplicate library importing logic * hide hints when library open * fix snaps * support promise in `initialData.libraryItems` * add default to params instead
5 lines
133 B
TypeScript
5 lines
133 B
TypeScript
import { unstable_createStore } from "jotai";
|
|
|
|
export const jotaiScope = Symbol();
|
|
export const jotaiStore = unstable_createStore();
|