Skip to content

Commit

Permalink
Add pseudoDelay parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Aug 1, 2023
1 parent 0610a5b commit bb79e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preview/withPseudoState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const withPseudoState: DecoratorFunction = (
const timeout = setTimeout(() => {
applyParameter(rootElement, globals || pseudoConfig(parameter))
shadowHosts.forEach(updateShadowHost)
}, 0)
}, parameters.pseudoDelay || 0)
return () => clearTimeout(timeout)
}, [rootElement, globals, parameter])

Expand Down

0 comments on commit bb79e5f

Please sign in to comment.