Skip to content

Commit

Permalink
get_untracked raf
Browse files Browse the repository at this point in the history
  • Loading branch information
a.nvlkv committed Nov 8, 2023
1 parent 0d20d4a commit 2cf5a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/use_raf_fn.rs
Expand Up @@ -79,7 +79,7 @@ pub fn use_raf_fn_with_options(
let previous_frame_timestamp = Cell::new(0.0_f64);

move |timestamp: f64| {
if !is_active.get() {
if !is_active.get_untracked() {
return;
}

Expand All @@ -101,7 +101,7 @@ pub fn use_raf_fn_with_options(
let _ = loop_ref.replace(Box::new(loop_fn));

let resume = move || {
if !is_active.get() {
if !is_active.get_untracked() {
set_active.set(true);
request_next_frame();
}
Expand Down

0 comments on commit 2cf5a0e

Please sign in to comment.