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

This commit is contained in:
Masen Furer 2024-08-05 14:03:30 -07:00 committed by GitHub
parent c7e30522bc
commit 7d9ed7e2ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 })
}