feat: implement type magic to allow strings, format args, and other types directly in rsx (#550)
* feat: implement type magic * chore: undo example * fix: let tests pass * chore: add generic to allow any nesting of iterators * Chore: remove comments * chore: update rsx usage * chore: use cleaner version of generic IntoVnode * chore: don't derive default for lfietimed thing * chore: remove latent comment * fix: accept a third parameter
This commit is contained in:
1 parent
38e8745db9
commit
67dc6e6017
7 files changed
+80
-100
No files matched your search
@@ -288,16 +288,14 @@ mod tests {
|
||||
}
|
||||
|
||||
let caller = {
|
||||
let it = (0..10)
|
||||
.map(|i| {
|
||||
let val = cx.props.inner.clone();
|
||||
LazyNodes::new(move |f| {
|
||||
eprintln!("hell closure");
|
||||
let inner = DropInner { id: i };
|
||||
f.text(format_args!("hello world {:?}, {:?}", inner.id, val))
|
||||
})
|
||||
let it = (0..10).map(|i| {
|
||||
let val = cx.props.inner.clone();
|
||||
LazyNodes::new(move |f| {
|
||||
eprintln!("hell closure");
|
||||
let inner = DropInner { id: i };
|
||||
f.text(format_args!("hello world {:?}, {:?}", inner.id, val))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
});
|
||||
|
||||
LazyNodes::new(|f| {
|
||||
eprintln!("main closure");
|
||||
|
||||
Reference in new issue
Block a user