mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 05:41:49 +08:00
Fix bad merge
This commit is contained in:
parent
316b500adb
commit
64bccf4b48
@ -169,7 +169,7 @@ export const init: ModuleFn = ({ store, navigate, state, provider, fullAPI, ...r
|
|||||||
fullAPI.on(STORY_ARGS_UPDATED, ({ args }) => {
|
fullAPI.on(STORY_ARGS_UPDATED, ({ args }) => {
|
||||||
if ('requestIdleCallback' in globalWindow) {
|
if ('requestIdleCallback' in globalWindow) {
|
||||||
if (handleOrId) globalWindow.cancelIdleCallback(handleOrId);
|
if (handleOrId) globalWindow.cancelIdleCallback(handleOrId);
|
||||||
handleOrId = globalWindow.requestIdleCallback(() => updateArgsParam(args), { timeout: 1000 });
|
handleOrId = globalWindow.requestIdleCallback(updateArgsParam, { timeout: 1000 });
|
||||||
} else {
|
} else {
|
||||||
if (handleOrId) clearTimeout(handleOrId);
|
if (handleOrId) clearTimeout(handleOrId);
|
||||||
setTimeout(updateArgsParam, 100);
|
setTimeout(updateArgsParam, 100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user