feat: amazingly awesome error handling
This commit is contained in:
1 parent
05c909f320
commit
4a72b3140b
58 files changed
+248
-1219
No files matched your search
@@ -0,0 +1,48 @@
|
||||
fn main() {}
|
||||
|
||||
use dioxus_core::prelude::*;
|
||||
|
||||
fn App(cx: Context<()>) -> DomTree {
|
||||
//
|
||||
let vak = cx.use_suspense(
|
||||
|| async {},
|
||||
|c, res| {
|
||||
//
|
||||
c.render(LazyNodes::new(move |f| f.text(format_args!(""))))
|
||||
},
|
||||
);
|
||||
|
||||
let d1 = cx.render(LazyNodes::new(move |f| {
|
||||
f.raw_element(
|
||||
"div",
|
||||
None,
|
||||
&mut [],
|
||||
&[],
|
||||
f.bump().alloc([
|
||||
f.fragment_from_iter(vak),
|
||||
f.text(format_args!("")),
|
||||
f.text(format_args!("")),
|
||||
f.text(format_args!("")),
|
||||
f.text(format_args!("")),
|
||||
]),
|
||||
None,
|
||||
)
|
||||
}));
|
||||
|
||||
cx.render(LazyNodes::new(move |f| {
|
||||
f.raw_element(
|
||||
"div",
|
||||
None,
|
||||
&mut [],
|
||||
&[],
|
||||
f.bump().alloc([
|
||||
f.text(format_args!("")),
|
||||
f.text(format_args!("")),
|
||||
f.text(format_args!("")),
|
||||
f.text(format_args!("")),
|
||||
f.fragment_from_iter(d1),
|
||||
]),
|
||||
None,
|
||||
)
|
||||
}))
|
||||
}
|
||||
Reference in new issue
Block a user