{"record":{"id":"82f10ffa6b0c01b7","repo":"DioxusLabs/dioxus","slug":"root-element","errorCode":null,"errorMessage":"root element","messagePattern":"root element","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/diff/node.rs","lineNumber":373,"sourceCode":"                found\n            }\n        }\n    }\n\n    fn root_child_edge_element(\n        &self,\n        child: VNodeChild<'_>,\n        mount: MountId,\n        target_id: crate::RenderTargetId,\n        dom: &VirtualDom,\n        edge: ElementEdge,\n    ) -> Option<ElementId> {\n        match child {\n            VNodeChild::Dynamic(anchor) => {\n                self.dynamic_anchor_edge_element(anchor, mount, dom, target_id, edge)\n            }\n            VNodeChild::Element(element) => self.find_static_anchor_in_target(\n                element.anchor_index().expect(\"root element\"),\n                mount,\n                target_id,\n                dom,\n            ),\n            VNodeChild::Text(text) => self.find_static_anchor_in_target(\n                text.anchor_index().expect(\"root text\"),\n                mount,\n                target_id,\n                dom,\n            ),\n        }\n    }\n\n    fn dynamic_anchor_edge_element(\n        &self,\n        anchor: DynamicAnchor<'_>,\n        mount: MountId,\n        dom: &VirtualDom,","sourceCodeStart":355,"sourceCodeEnd":391,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/diff/node.rs#L355-L391","documentation":"`root_child_edge_element` resolves a static root element's anchor index and `expect`s it to exist when the root child is an element. This panic fires if the internal invariant that every static root element has an anchor index is violated — a core diffing bug, not user error.","triggerScenarios":"Thrown at packages/core/src/diff/node.rs:373 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant about root element creation. Report it with a minimal reproduction to the Dioxus issue tracker."],"exampleFix":null,"handlingStrategy":"type-guard","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"}