DioxusLabs/dioxus · error
text slot
Error message
text slot
What it means
`unchecked_mounted_dynamic_text_node` reads a dynamic slot and `expect`s it to hold text. The 'unchecked' variant skips the Option return, so this panic fires when callers request the text element for a slot that is empty or holds a different node kind — an internal misuse of the unchecked accessor.
Source
Thrown at packages/core/src/mount.rs:410
pub(crate) fn clear_mounted_dynamic_node_slot(&self, mount: MountId, dyn_node_idx: usize) {
self.set_mounted_dynamic_node_slot(mount, dyn_node_idx, MountedDynamicNodeSlot::Empty);
}
pub(crate) fn mounted_dynamic_text_node(
&self,
mount: MountId,
dyn_node_idx: usize,
) -> Option<MountedElementId> {
self.with_mount(mount, |mount| mount.dynamic_slot(dyn_node_idx).text())
}
pub(crate) fn unchecked_mounted_dynamic_text_node(
&self,
mount: MountId,
dyn_node_idx: usize,
) -> MountedElementId {
self.mounted_dynamic_text_node(mount, dyn_node_idx)
.expect("text slot")
}
pub(crate) fn set_mounted_dynamic_text_node(
&self,
mount: MountId,
dyn_node_idx: usize,
value: MountedElementId,
) {
self.set_mounted_dynamic_node_slot(
mount,
dyn_node_idx,
MountedDynamicNodeSlot::Text(value),
);
}
pub(crate) fn clear_mounted_fragment_children(&self, mount: MountId, dyn_node_idx: usize) {
self.with_mount_mut(mount, |mount| {
*mount.dynamic_slot_mut(dyn_node_idx) = PackedMountedSlot::empty();View on GitHub (pinned to 24f6a829df)
Solutions
- This is an internal invariant about text slots. Report it with a minimal reproduction to the Dioxus issue tracker.
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at packages/core/src/mount.rs:410 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23).
Data as JSON: /api/errors/fab88d63b0118b7c.
Report an issue: GitHub.