| Crates.io | compose-derive |
| lib.rs | compose-derive |
| version | 0.1.0 |
| created_at | 2022-03-14 04:39:16.468079+00 |
| updated_at | 2022-03-14 04:39:16.468079+00 |
| description | A positional memoization runtime similar to Jetpack Compose Runtime. |
| homepage | https://github.com/cksac/compose-rt |
| repository | https://github.com/cksac/compose-rt |
| max_upload_size | |
| id | 549621 |
| size | 3,843 |
transform function into compose function
#[compose]
pub fn MoviesScreen(movies: &Vec<Movie>) {
Column(cx, |cx| {
for movie in movies {
cx.tag(movie.id, |cx| MovieOverview(cx, &movie));
}
});
}
// after expand
#[track_caller]
pub fn MoviesScreen(cx: &mut compose_rt::Composer, movies: &Vec<Movie>) {
Column(cx, |cx| {
for movie in movies {
cx.tag(movie.id, |cx| MovieOverview(cx, &movie));
}
});
}