DioxusLabs/dioxus · error
{error}
Error message
{error} What it means
A generic error-formatting panic in the oracle test renderer that forwards the formatted error string. It serves as the catch-all failure point where the underlying {error} text describes the actual assertion or rendering failure in test tooling.
Source
Thrown at packages/oracle/src/renderer.rs:1044
if self.is_stack_clean() {
Ok(())
} else {
Err(format!(
"renderer mutation stack is not clean: expected only document root, got {} extra node(s)",
self.pending_stack_nodes()
))
}
}
/// Compare this renderer's snapshot to an expected snapshot, returning whether they match.
pub fn snapshot_eq(&self, expected: &[SnapshotNode]) -> bool {
self.snapshot() == expected
}
/// Assert that this renderer's snapshot matches an expected snapshot.
pub fn assert_snapshot_eq(&self, expected: &[SnapshotNode]) {
if let Err(error) = self.check_snapshot_eq(expected) {
panic!("{error}");
}
}
/// Check that this renderer's snapshot matches an expected snapshot.
pub fn check_snapshot_eq(&self, expected: &[SnapshotNode]) -> Result<(), String> {
let actual = self.snapshot();
if actual == expected {
Ok(())
} else {
Err(format_snapshot_mismatch(
"renderer snapshot diverged from expected tree",
&actual,
expected,
))
}
}
/// Assert that this renderer's snapshot matches a fresh rebuild of `app`.View on GitHub (pinned to 24f6a829df)
Solutions
- An error was returned by the oracle renderer. Read the embedded error text and fix the underlying query or DOM state it reports.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/oracle/src/renderer.rs:1044 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/6f55a08499fbc81e.
Report an issue: GitHub.