Skip to content

Commit

Permalink
fix queryState
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau authored and Robonau committed Jan 29, 2025
1 parent 9afd214 commit 626671c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/util.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ export function queryState<

store.subscribe((value) => {
// i dont like this but i think its nessessary
if (JSON.stringify(value) === JSON.stringify(queryState)) return;
if (JSON.stringify(value) === JSON.stringify(untrack(() => queryState)))
return;
queryState = value;
});
store.isPaused$.subscribe((value) => {
Expand Down

0 comments on commit 626671c

Please sign in to comment.