{"record":{"id":"54261f604634e7b8","repo":"DioxusLabs/dioxus","slug":"anchor-slot","errorCode":null,"errorMessage":"anchor slot","messagePattern":"anchor slot","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/mount.rs","lineNumber":331,"sourceCode":"\n    pub(crate) fn mounted_anchor_node(\n        &self,\n        mount: MountId,\n        anchor_idx: usize,\n    ) -> Option<MountedElementId> {\n        self.with_mount(mount, |mount| {\n            mount.anchor_slot(anchor_idx).mounted_element()\n        })\n    }\n\n    #[track_caller]\n    pub(crate) fn unchecked_mounted_anchor_node(\n        &self,\n        mount: MountId,\n        anchor_idx: usize,\n    ) -> MountedElementId {\n        self.mounted_anchor_node(mount, anchor_idx)\n            .expect(\"anchor slot\")\n    }\n\n    pub(crate) fn set_mounted_anchor_node(\n        &self,\n        mount: MountId,\n        anchor_idx: usize,\n        value: MountedElementId,\n    ) {\n        self.with_mount_mut(mount, |mount| {\n            *mount.anchor_slot_mut(anchor_idx) = PackedMountedSlot::from_mounted_element(value);\n        });\n    }\n\n    pub(crate) fn clear_mounted_anchor_node(&self, mount: MountId, anchor_idx: usize) {\n        self.with_mount_mut(mount, |mount| {\n            *mount.anchor_slot_mut(anchor_idx) = PackedMountedSlot::empty();\n        });\n    }","sourceCodeStart":313,"sourceCodeEnd":349,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/mount.rs#L313-L349","documentation":"Internal invariant: unchecked_mounted_anchor_node was called for an anchor slot that has no mounted element. The unchecked variant assumes the caller verified presence; firing means a mounted element was read before creation or after removal.","triggerScenarios":"Thrown at packages/core/src/mount.rs:331 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant about anchor slots. 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"}