Skip to content

Commit

Permalink
Use the new state name when setting is_hydrated to false (reflex-de…
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf authored and benedikt-bartscher committed Aug 11, 2024
1 parent 45de8cd commit 91ba4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/.templates/web/utils/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
Expand Down

0 comments on commit 91ba4a1

Please sign in to comment.