{"record":{"id":"3e76182c599cb8f2","repo":"DioxusLabs/dioxus","slug":"hydration-is-not-enabled-please-enable-the-hydra","errorCode":null,"errorMessage":"Hydration is not enabled. Please enable the `hydrate` feature.","messagePattern":"Hydration is not enabled\\. Please enable the `hydrate` feature\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/web/src/lib.rs","lineNumber":160,"sourceCode":"                    document::init_fullstack_document();\n                });\n                // Build the vdom without emitting mutations: the SSR DOM is\n                // already in place, so hydration binds it afterward.\n                virtual_dom.rebuild_in_place();\n            });\n\n            let rx = websys_dom.rehydrate(&mut virtual_dom).unwrap();\n            hydration_receiver = Some(rx);\n\n            #[cfg(feature = \"mounted\")]\n            {\n                // Flush any mounted events that were queued up while hydrating\n                websys_dom.flush_queued_mounted_events();\n            }\n        }\n        #[cfg(not(feature = \"hydrate\"))]\n        {\n            panic!(\"Hydration is not enabled. Please enable the `hydrate` feature.\");\n        }\n    } else {\n        virtual_dom.rebuild(&mut websys_dom);\n\n        websys_dom.flush_edits();\n    }\n\n    loop {\n        // if virtual dom has nothing, wait for it to have something before requesting idle time\n        // if there is work then this future resolves immediately.\n        #[cfg(all(feature = \"devtools\", debug_assertions))]\n        let template;\n        #[allow(unused)]\n        let mut hydration_work: Option<SuspenseMessage> = None;\n\n        {\n            let work = virtual_dom.wait_for_work().fuse();\n            pin_mut!(work);","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/web/src/lib.rs#L142-L178","documentation":"The web renderer attempted to hydrate an SSR-rendered page but the `hydrate` feature is not enabled on dioxus-web. Hydration paths only exist behind that feature; without it the rehydrate flow cannot run.","triggerScenarios":"Thrown at packages/web/src/lib.rs:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable the hydrate feature on dioxus-web to use hydration."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}