removed warnings because of get/get_untracked

This commit is contained in:
Maccesch 2023-11-15 23:19:11 +00:00
parent 28ab799156
commit 4a4feefbfc
2 changed files with 3 additions and 3 deletions

View file

@ -89,7 +89,7 @@ pub fn use_raf_fn_with_options(
let previous_frame_timestamp = Cell::new(0.0_f64); let previous_frame_timestamp = Cell::new(0.0_f64);
move |timestamp: f64| { move |timestamp: f64| {
if !is_active.get() { if !is_active.get_untracked() {
return; return;
} }
@ -111,7 +111,7 @@ pub fn use_raf_fn_with_options(
let _ = loop_ref.replace(Box::new(loop_fn)); let _ = loop_ref.replace(Box::new(loop_fn));
let resume = move || { let resume = move || {
if !is_active.get() { if !is_active.get_untracked() {
set_active.set(true); set_active.set(true);
request_next_frame(); request_next_frame();
} }

View file

@ -84,7 +84,7 @@ pub fn use_timestamp_with_controls_and_options(options: UseTimestampOptions) ->
move || { move || {
update(); update();
callback(ts.get()); callback(ts.get_untracked());
} }
}; };