{"record":{"id":"6b44d59dfcaa6f8f","repo":"DioxusLabs/dioxus","slug":"dynamic-node-should-belong-to-an-anchor","errorCode":null,"errorMessage":"dynamic node should belong to an anchor","messagePattern":"dynamic node should belong to an anchor","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/mount.rs","lineNumber":225,"sourceCode":"\n    pub(crate) fn logical_parent(&self) -> Option<MountId> {\n        self.logical_parent\n    }\n\n    pub(crate) fn render_parent(&self) -> Option<MountedParent> {\n        self.render_parent\n    }\n\n    pub(crate) fn node(&self) -> &VNode {\n        &self.node\n    }\n\n    fn dynamic_node_anchor_index(&self, dyn_node_idx: usize) -> usize {\n        self.node\n            .dynamic_anchors()\n            .find(|anchor| anchor.nodes().any(|slot| slot.index() == dyn_node_idx))\n            .map(|anchor| anchor.anchor_index())\n            .expect(\"dynamic node should belong to an anchor\")\n    }\n\n    fn dynamic_offset(&self) -> usize {\n        self.anchor_count as usize\n    }\n\n    fn dynamic_slot(&self, idx: usize) -> PackedMountedSlot {\n        self.slots[self.dynamic_offset() + idx]\n    }\n\n    fn dynamic_slot_mut(&mut self, idx: usize) -> &mut PackedMountedSlot {\n        let offset = self.dynamic_offset();\n        &mut self.slots[offset + idx]\n    }\n\n    fn anchor_slot(&self, idx: usize) -> PackedMountedSlot {\n        self.slots[idx]\n    }","sourceCodeStart":207,"sourceCodeEnd":243,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/mount.rs#L207-L243","documentation":"Internal mount-table invariant: a dynamic node index was not found in any dynamic anchor of the mounted vnode. Every dynamic slot must belong to exactly one anchor; firing indicates vnode/anchor bookkeeping drift.","triggerScenarios":"Thrown at packages/core/src/mount.rs:225 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant about dynamic node 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-14T05:17:10.506Z"}