Function
preview
(
themeIdentifier: ThemeIdentifier,
customColorsOverride?: CustomThemeColors,
)
Source from the content-addressed store, hash-verified
| 121 | let previewState: PreviewState = null; |
| 122 | |
| 123 | export function preview( |
| 124 | themeIdentifier: ThemeIdentifier, |
| 125 | customColorsOverride?: CustomThemeColors, |
| 126 | ): void { |
| 127 | previewState = { theme: themeIdentifier, colors: customColorsOverride }; |
| 128 | debouncedPreview(); |
| 129 | } |
| 130 | |
| 131 | const debouncedPreview = debounce<() => void>(250, () => { |
| 132 | if (previewState) { |
Tested by
no test coverage detected