{"record":{"id":"36667ec263a13735","repo":"DioxusLabs/dioxus","slug":"component-root","errorCode":null,"errorMessage":"component root","messagePattern":"component root","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/diff/component.rs","lineNumber":284,"sourceCode":"        let nodes = driver.create(&mut *state.dom, scope_id, parent, to);\n        self.finish_component_create(mount, idx, scope_id, nodes, state)\n    }\n\n    fn finish_component_create(\n        &self,\n        mount: MountId,\n        idx: usize,\n        scope_id: ScopeId,\n        nodes: usize,\n        state: &mut DiffState<'_, '_, '_, '_>,\n    ) -> usize {\n        let root_mount = state\n            .dom\n            .get_scope(scope_id)\n            .expect(\"component scope\")\n            .last_rendered_node\n            .as_ref()\n            .expect(\"component root\")\n            .root_mount();\n        state\n            .dom\n            .runtime\n            .get_state(scope_id)\n            .set_root_mount(Some(root_mount));\n        state\n            .dom\n            .set_component_root_render_parent(mount, idx, root_mount);\n        nodes\n    }\n}\n","sourceCodeStart":266,"sourceCodeEnd":297,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core/src/diff/component.rs#L266-L297","documentation":"Internal VirtualDOM invariant panic: after creating a component, its scope's last rendered output was expected to exist and expose a root mount. Violation means the component rendered no nodes or the scope state is corrupted — a framework bug, not user error.","triggerScenarios":"Thrown at packages/core/src/diff/component.rs:284 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal VirtualDOM invariant. If you hit it, capture a minimal reproduction and report it 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"}