Skip to content

Commit a0b16e2

Browse files
committed
Fix test
1 parent 5a9c4b8 commit a0b16e2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/react/src/stores/theme-store.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import type { DevupTheme } from '../types/theme'
44
type Theme = keyof DevupTheme | null
55
type StoreChangeEvent = (newTheme: Theme) => void
66

7-
const initTheme = null
8-
97
function createClientThemeStore() {
108
const el = document.documentElement
119
const subscribers: Set<StoreChangeEvent> = new Set()
12-
let theme: Theme = initTheme
10+
let theme: Theme = null
1311
const get = () => theme
1412
const set = (newTheme: Theme) => {
1513
theme = newTheme
@@ -45,7 +43,7 @@ export function createServerThemeStore(): ReturnType<
4543
typeof createClientThemeStore
4644
> {
4745
return {
48-
get: () => initTheme,
46+
get: () => null,
4947
set: () => {},
5048
subscribe: () => () => {},
5149
} as unknown as ReturnType<typeof createClientThemeStore>

0 commit comments

Comments
 (0)