Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Double loading invalidation (#25)
* fix: double invalidate bug Currently, if a query gets invalidated while its state is Loading(Some(value)), it loses the value. This can be annoying in cases where the query is invalidated multiple times within a short timespan, or for long-running queries. We can fix this by nooping set_loading calls for queries that are already loading, which is what this change adds. * reusing is_loading helper * refactor: Cleaner fix --------- Co-authored-by: marc2332 <mespinsanz@gmail.com>
- Loading branch information