{"record":{"id":"3d0488ee2f52d9cf","repo":"DioxusLabs/dioxus","slug":"static-text","errorCode":null,"errorMessage":"static text","messagePattern":"static text","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/diff/template.rs","lineNumber":117,"sourceCode":"impl<'a> StaticText<'a> {\n    fn new(vnode: &'a VNode, op: usize, anchor_idx: Option<usize>) -> Self {\n        Self {\n            vnode,\n            op,\n            anchor_idx,\n        }\n    }\n\n    /// The flat template op for this text node.\n    pub fn op(self) -> usize {\n        self.op\n    }\n\n    fn template_text(self) -> StaticTemplateText<'a> {\n        self.vnode\n            .template()\n            .static_text(self.op)\n            .expect(\"static text\")\n    }\n\n    /// The static text value.\n    pub fn text(self) -> &'static str {\n        self.template_text().text()\n    }\n\n    /// The structural anchor for this static node when it has one.\n    pub fn anchor_index(self) -> Option<usize> {\n        self.anchor_idx\n    }\n}\n\n/// Iterator over rendered children.\npub(crate) struct VNodeChildren<'a> {\n    inner: VNodeChildrenInner<'a>,\n}\n","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/diff/template.rs#L99-L135","documentation":"`StaticText::template_text` looks up the flat template op as a static text node and `expect`s it to be one. This panic fires if the op index points at a non-text node — an internal inconsistency in template op indexing, not user error.","triggerScenarios":"Thrown at packages/core/src/diff/template.rs:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant about static text nodes in templates. 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"}