Feat: some code health
This commit is contained in:
1 parent
9810feebf5
commit
c28697e1fe
16 files changed
+568
-551
No files matched your search
@@ -4,7 +4,7 @@ use dioxus_core::prelude::*;
|
||||
|
||||
static Example: FC<()> = |ctx, props| {
|
||||
ctx.render(dioxus_core::prelude::LazyNodes::new(move |ctx| {
|
||||
let bump = ctx.bump;
|
||||
let bump = ctx.bump();
|
||||
dioxus::builder::ElementBuilder::new(ctx, "h1")
|
||||
.children([{
|
||||
use bumpalo::core_alloc::fmt::Write;
|
||||
|
||||
@@ -17,7 +17,7 @@ static Header: FC<()> = |ctx, props| {
|
||||
.child(VNode::Component(VComponent::new(
|
||||
Bottom,
|
||||
//
|
||||
c.bump.alloc(()),
|
||||
c.bump().alloc(()),
|
||||
None,
|
||||
)))
|
||||
.finish()
|
||||
|
||||
Reference in new issue
Block a user