feat: support cached ssr

This commit is contained in:
Jonathan Kelley committed 2022-11-02 01:00:37 -07:00
1 parent 4a31b29703
commit b6c0bce89c
11 files changed
+433 -178

No files matched your search

+6
View File
@@ -30,6 +30,9 @@ fn basic_syntax_is_a_template(cx: Scope) -> Element {
fn basic_template(cx: Scope) -> Element {
cx.render(rsx! {
div {
(0..2).map(|i| rsx! {
div { "asd" }
}),
(0..2).map(|i| rsx! {
div { "asd" }
})
@@ -42,7 +45,10 @@ fn basic_prints() {
let mut dom = VirtualDom::new(basic_template);
let mut edits = Vec::new();
dom.rebuild(&mut edits);
dbg!(edits);
let mut edits = Vec::new();
dom.rebuild(&mut edits);
dbg!(edits);