mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-03-13 01:09:48 -04:00
removed warnings because of get/get_untracked
This commit is contained in:
parent
28ab799156
commit
4a4feefbfc
2 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,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;
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,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();
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ pub fn use_timestamp_with_controls_and_options(options: UseTimestampOptions) ->
|
|||
|
||||
move || {
|
||||
update();
|
||||
callback(ts.get());
|
||||
callback(ts.get_untracked());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue