config :: devtools
-
- {move || serde_json::to_string_pretty(object.get().as_ref()).unwrap_or("unserializable".to_string())}
+
+ {move || object.get().map(|o| view! { })}
}
@@ -67,3 +86,50 @@ async fn debug_fetch(url: &str, token: Auth) -> serde_json::Value {
}
}
}
+
+#[component]
+fn DocumentNode(obj: serde_json::Value, #[prop(optional)] depth: usize) -> impl IntoView {
+ let prefix = " ".repeat(depth);
+ match obj {
+ serde_json::Value::Null => view! {