fixed use_infinity_scroll disposed signals bug

fixes #98
This commit is contained in:
Maccesch 2024-04-27 16:52:24 +01:00
parent 2cda3f8aca
commit aebff60f4d
3 changed files with 4 additions and 3 deletions

View file

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixes 🍕
- Fixed `use_color_mode` without cookies and make cookies sync properly with local storage
- Fixed `use_infinite_scroll` edge case bug with disposed signals
## [0.10.8] - 2024-04-19

View file

@ -168,10 +168,10 @@ where
#[cfg(debug_assertions)]
SpecialNonReactiveZone::exit(prev);
set_loading.set(false);
set_loading.try_set(false);
sleep(Duration::ZERO).await;
measure();
if let Some(check_and_load) = check_and_load.get_value() {
if let Some(check_and_load) = check_and_load.try_get_value().flatten() {
check_and_load();
}
});

View file

@ -421,7 +421,7 @@ where
);
let measure = move || {
if let Some(el) = signal.get_untracked() {
if let Some(el) = signal.try_get_untracked().flatten() {
let el = el.into();
set_arrived_state(el);
}