chore: more refactoring, docs

This commit is contained in:
Jonathan Kelley committed 2022-11-11 18:29:27 -08:00
1 parent f7df6a9893
commit c44bd11fe5
27 files changed
+657 -382

No files matched your search

-13
View File
@@ -1,7 +1,5 @@
use std::marker::PhantomData;
use std::future::Future;
use crate::{
factory::{ComponentReturn, RenderReturn},
innerlude::Scoped,
@@ -25,17 +23,6 @@ where
pub _marker: PhantomData<A>,
}
impl<'a> VComponentProps<'a, (), ()> {
pub fn new_empty(render_fn: fn(Scope) -> Element) -> Self {
Self {
render_fn,
memo: <() as PartialEq>::eq,
props: (),
_marker: PhantomData,
}
}
}
impl<'a, P, A, F: ComponentReturn<'a, A>> VComponentProps<'a, P, A, F> {
pub(crate) fn new(
render_fn: fn(Scope<'a, P>) -> F,