{"record":{"id":"ac648f8219bb5d20","repo":"DioxusLabs/dioxus","slug":"slot-path-overflow","errorCode":null,"errorMessage":"slot path overflow","messagePattern":"slot path overflow","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core-template/src/path.rs","lineNumber":223,"sourceCode":"        self.is_last_static_node\n    }\n}\n\nimpl TemplateSlotPath {\n    const TARGET_LAST_STATIC_NODE: u128 = 1;\n    const MAX_PAYLOAD: u128 = u128::MAX >> (u128::BITS as usize - TEMPLATE_SLOT_PATH_MAX_PATH_BITS);\n\n    const fn new(bits: u128) -> Self {\n        match NonZeroU128::new(bits) {\n            Some(bits) => Self(bits),\n            None => panic!(\"bad slot path\"),\n        }\n    }\n\n    const fn encode_payload(path: TemplatePath) -> u128 {\n        let payload = path.bits();\n        if payload > Self::MAX_PAYLOAD {\n            panic!(\"slot path overflow\");\n        }\n        payload << 1\n    }\n\n    pub(crate) const fn static_node(path: TemplatePath) -> Self {\n        if path.is_empty() {\n            panic!(\"bad slot target\");\n        }\n        Self::new(Self::encode_payload(path))\n    }\n\n    pub(crate) const fn last_static_node(path: TemplatePath) -> Self {\n        Self::new(Self::encode_payload(path) | Self::TARGET_LAST_STATIC_NODE)\n    }\n\n    /// Return the raw tagged bits.\n    pub(crate) const fn bits(self) -> u128 {\n        self.0.get()","sourceCodeStart":205,"sourceCodeEnd":241,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core-template/src/path.rs#L205-L241","documentation":"TemplateSlotPath encodes a node path into a fixed bit budget (TEMPLATE_SLOT_PATH_MAX_PATH_BITS). If a template path's bit payload exceeds MAX_PAYLOAD, it cannot be represented, so this panic fires during const encoding in the core-template macro.","triggerScenarios":"Thrown at packages/core-template/src/path.rs:223 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The template slot path is too deep for the packed representation. Reduce nesting by splitting the component into smaller components."],"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"}