Patch Changes
-
fix(query-db-collection): use deep equality for object field comparison in query observer (#967)
Fixed an issue where updating object fields (non-primitives) with
refetch: falseinonUpdatehandlers would cause the value to rollback to the previous state every other update. The query observer was using shallow equality (===) to compare items, which compares object properties by reference rather than by value. This caused the observer to incorrectly detect differences and write stale data back to syncedData. Now usesdeepEqualsfor proper value comparison. -
Use regular dependency for @tanstack/db instead of peerDependency to match the standard pattern used by other TanStack DB packages and prevent duplicate installations (#952)
-
Updated dependencies [
c4b9399,a1a484e]:- @tanstack/db@0.5.11