瀏覽代碼

Use the new state name when setting `is_hydrated` to false (#3738)

Masen Furer 9 月之前
父節點
當前提交
7d9ed7e2ce
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/.templates/web/utils/state.js

+ 1 - 1
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 })
       }