wip: staticify?
This commit is contained in:
1 parent
78d093a945
commit
5ad81885e4
21 files changed
+433
-346
No files matched your search
@@ -1,9 +1,6 @@
|
||||
use dioxus_core::component::fc_to_builder;
|
||||
use dioxus_core::prelude::*;
|
||||
|
||||
|
||||
|
||||
|
||||
static BLAH: FC<()> = |ctx, _props| {
|
||||
let g = "asd".to_string();
|
||||
ctx.render(rsx! {
|
||||
@@ -30,7 +27,12 @@ fn main() {}
|
||||
|
||||
impl Properties for ExampleProps {
|
||||
type Builder = ExamplePropsBuilder<((),)>;
|
||||
type StaticOutput = ExampleProps;
|
||||
fn builder() -> Self::Builder {
|
||||
ExampleProps::builder()
|
||||
}
|
||||
|
||||
unsafe fn into_static(self) -> Self {
|
||||
self
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user