{"record":{"id":"99a7cdbb1b806372","repo":"DioxusLabs/dioxus","slug":"static-root-anchor","errorCode":null,"errorMessage":"static root anchor","messagePattern":"static root anchor","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/diff/template.rs","lineNumber":231,"sourceCode":"        if let Some((anchor_index, node)) = self.pending_static.take() {\n            let path = self.vnode.template().anchors()[anchor_index].static_path();\n            return Some(static_child(self.vnode, node, path, Some(anchor_index)));\n        }\n\n        while self.anchor_index < self.vnode.template().anchors().len() {\n            let anchor_index = self.anchor_index;\n            self.anchor_index += 1;\n            let anchor = DynamicAnchor::new(self.vnode, anchor_index);\n            if !anchor.is_root_level() {\n                continue;\n            }\n\n            let static_root = (!anchor.is_last_static_node() && anchor.static_path().is_root())\n                .then(|| {\n                    self.vnode\n                        .template()\n                        .static_node_at_path(anchor.static_path())\n                        .expect(\"static root anchor\")\n                });\n\n            if anchor.nodes().len() > 0 {\n                self.pending_static = static_root.map(|node| (anchor_index, node));\n                return Some(VNodeChild::Dynamic(anchor));\n            }\n\n            let node = static_root.expect(\"zero-node root anchor must own a static node\");\n            let path = self.vnode.template().anchors()[anchor_index].static_path();\n            return Some(static_child(self.vnode, node, path, Some(anchor_index)));\n        }\n\n        None\n    }\n}\n\n#[derive(Clone, Copy)]\nstruct ElementChildCursor<'a> {","sourceCodeStart":213,"sourceCodeEnd":249,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/diff/template.rs#L213-L249","documentation":"The root-level iterator's `next` resolves a static root node at a dynamic anchor's path and `expect`s the template to contain it. This panic fires when `static_node_at_path` finds nothing — an internal mismatch between anchor paths and template contents, not user error.","triggerScenarios":"Thrown at packages/core/src/diff/template.rs:231 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant about static root anchors. 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"}