mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Try waiting on the init promise
This commit is contained in:
parent
8495960bb8
commit
ca03e353e5
@ -194,6 +194,8 @@ export class PreviewWeb<TFramework extends AnyFramework> extends Preview<TFramew
|
||||
importFn?: ModuleImportFn;
|
||||
storyIndex?: StoryIndex;
|
||||
}) {
|
||||
await this.storyStore.initializationPromise;
|
||||
|
||||
super.onStoriesChanged({ importFn, storyIndex });
|
||||
|
||||
if (!global.FEATURES?.storyStoreV7) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user