Skip to content

Commit

Permalink
fix dioxus warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrimpuff committed Dec 27, 2024
1 parent 557d2dd commit 6ada8f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/sources/starter_decks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,12 @@ pub fn Import(
*loading.write() = false;
};

if common_deck.read().is_none() {
load_deck();
}
// display once
use_effect(move || {
if common_deck.peek().is_none() {
load_deck();
}
});

rsx! {
div { class: "field",
Expand Down

0 comments on commit 6ada8f4

Please sign in to comment.