From 91ba4a157b41bf6cdf006ee5b0aeaa333cdc45f4 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 5 Aug 2024 14:03:30 -0700 Subject: [PATCH] Use the new state name when setting `is_hydrated` to false (#3738) --- reflex/.templates/web/utils/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/.templates/web/utils/state.js b/reflex/.templates/web/utils/state.js index 81ac401009..26b2d0d0ce 100644 --- a/reflex/.templates/web/utils/state.js +++ b/reflex/.templates/web/utils/state.js @@ -782,7 +782,7 @@ export const useEventLoop = ( // Route after the initial page hydration. useEffect(() => { const change_start = () => { - const main_state_dispatch = dispatch["state"] + const main_state_dispatch = dispatch["reflex___state____state"] if (main_state_dispatch !== undefined) { main_state_dispatch({ is_hydrated: false }) }