fragment_from_iter.rs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. use dioxus_core::prelude::*;
  2. fn main() {}
  3. fn app<'a>(cx: Context<'a>, props: &()) -> Element<'a> {
  4. // let vak = use_suspense(
  5. // cx,
  6. // || async {},
  7. // |c, _res| c.render(LazyNodes::new(move |f| f.text(format_args!("")))),
  8. // );
  9. // let d1 = cx.render(to_lazy_nodes(move |f| {
  10. // f.raw_element(
  11. // "div",
  12. // None,
  13. // [],
  14. // [],
  15. // [
  16. // // f.fragment_from_iter(vak),
  17. // f.text(format_args!("")),
  18. // f.text(format_args!("")),
  19. // f.text(format_args!("")),
  20. // f.text(format_args!("")),
  21. // ],
  22. // None,
  23. // )
  24. // }));
  25. todo!()
  26. // cx.render(LazyNodes::new(move |f| {
  27. // f.raw_element(
  28. // "div",
  29. // None,
  30. // [],
  31. // [],
  32. // [
  33. // f.text(format_args!("")),
  34. // f.text(format_args!("")),
  35. // f.text(format_args!("")),
  36. // f.text(format_args!("")),
  37. // d1.unwrap(),
  38. // ],
  39. // None,
  40. // )
  41. // }))
  42. }