Skip to content

Commit 7d9ed7e

Browse files
authored
Use the new state name when setting is_hydrated to false (#3738)
1 parent c7e3052 commit 7d9ed7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/.templates/web/utils/state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ export const useEventLoop = (
782782
// Route after the initial page hydration.
783783
useEffect(() => {
784784
const change_start = () => {
785-
const main_state_dispatch = dispatch["state"]
785+
const main_state_dispatch = dispatch["reflex___state____state"]
786786
if (main_state_dispatch !== undefined) {
787787
main_state_dispatch({ is_hydrated: false })
788788
}

0 commit comments

Comments
 (0)