Use new way of creating resources

This commit is contained in:
2024-12-23 20:34:28 -05:00
parent 92eb63e946
commit 900d1ca1bb
5 changed files with 13 additions and 13 deletions

View File

@ -24,7 +24,7 @@ impl GlobalState {
pub fn new() -> Self {
let play_status = create_rw_signal(PlayStatus::default());
let logged_in_user = create_resource(|| (), |_| async {
let logged_in_user = Resource::new(|| (), |_| async {
get_logged_in_user().await
.inspect_err(|e| {
error!("Error getting logged in user: {:?}", e);