feat(storybook): preview app (#3765)

This commit is contained in:
Alex Yang
2023-08-15 15:34:02 -05:00
committed by GitHub
parent 42dfd0a4bb
commit 67b33d9b8f
15 changed files with 179 additions and 76 deletions

View File

@@ -169,7 +169,14 @@ function createFirstAppData() {
rootStore.set(rootWorkspacesMetadataAtom, result);
}
let isSetup = false;
export async function setup() {
if (isSetup) {
console.warn('already setup');
return;
}
isSetup = true;
rootStore.set(
workspaceAdaptersAtom,
WorkspaceAdapters as Record<