wip: making progress on diffing and hydration
This commit is contained in:
1 parent
e5c88fe3a4
commit
49856ccd68
34 files changed
+1023
-750
No files matched your search
@@ -30,8 +30,8 @@ pub static Example: FC<()> = |cx| {
|
||||
|
||||
// Tasks are 'static, so we need to copy relevant items in
|
||||
let (async_count, dir) = (count.for_async(), *direction);
|
||||
|
||||
let (task, result) = use_task(cx, move || async move {
|
||||
// Count infinitely!
|
||||
loop {
|
||||
gloo_timers::future::TimeoutFuture::new(250).await;
|
||||
*async_count.get_mut() += dir;
|
||||
|
||||
@@ -7,7 +7,7 @@ pub static Example: FC<()> = |cx| {
|
||||
// This is an easy/low hanging fruit to improve upon
|
||||
let mut dom = VirtualDom::new(SomeApp);
|
||||
dom.rebuild_in_place().unwrap();
|
||||
ssr::render_vdom(&dom)
|
||||
ssr::render_vdom(&dom, |c| c)
|
||||
});
|
||||
|
||||
cx.render(rsx! {
|
||||
|
||||
Reference in new issue
Block a user