mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
fix(angular): limit render promise to 1
This commit is contained in:
parent
6a46970d9c
commit
0eb2f697c5
@ -17,7 +17,8 @@ export const prepareForInline = (storyFn: StoryFn<IStory>, { id, parameters }: S
|
||||
return null;
|
||||
}
|
||||
|
||||
return limit(() => rendererFactory.getRendererInstance(id, node)).then(async (renderer) => {
|
||||
return limit(async () => {
|
||||
const renderer = await rendererFactory.getRendererInstance(id, node);
|
||||
await renderer.render({
|
||||
forced: false,
|
||||
parameters,
|
||||
|
Loading…
x
Reference in New Issue
Block a user