Skip to content

Commit 0afbc36

Browse files
committed
remove initialState
1 parent 676bcfc commit 0afbc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/compiler/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def context_template(
377377
import {{ applyDelta, Event, hydrateClientStorage, useEventLoop, refs }} from "$/utils/state"
378378
import {{ jsx }} from "@emotion/react";
379379
380-
export const initialState = {"{}" if initial_state else json_dumps(initial_state)}
380+
export const initialState = {"{}" if not initial_state else json_dumps(initial_state)}
381381
382382
export const defaultColorMode = {default_color_mode}
383383
export const ColorModeContext = createContext(null);

0 commit comments

Comments
 (0)