Use Effect::new instead of create_effect

This commit is contained in:
2024-12-28 16:02:27 -05:00
parent d89d9d3548
commit e533132273
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ fn SongOverview(song: SongData) -> impl IntoView {
}
});
create_effect(move |_| {
Effect::new(move |_| {
GlobalState::play_status().with(|status| {
playing.set(status.queue.front().map(|song| song.id) == Some(song.id) && status.playing);
});