Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Render for DwarfList {
}
}

async fn hall_of_ancestors(_: State<Ctx>) -> AsyncLazy<impl Render> {
async fn hall_of_ancestors(_: State<Ctx>) -> AsyncLazy<impl AsyncRender> {
let thorin = async {
tokio::time::sleep(Duration::from_millis(300)).await;
Dwarf {
Expand Down
16 changes: 9 additions & 7 deletions crates/ast/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ impl Component {
ElementBody::Normal { children, .. } => {
let buffer_ident = Generator::buffer_ident();

let block = g.block_with(
Brace::default(),
|g| {
g.push(children);
},
true,
);
let block = g.with_in_shared_closure(true, |g| {
g.block_with(
Brace::default(),
|g| {
g.push(children);
},
true,
)
});

Some(quote! {
::cheers::prelude::Lazy::dangerously_create(
Expand Down
365 changes: 237 additions & 128 deletions crates/ast/src/control.rs

Large diffs are not rendered by default.

Loading
Loading