Patch Changes
-
Improved the type of the queryFn's ctx.meta property of the Query Collection to include the loadSubsetOptions (#857)
-
Fixed bug where optimistic state leaked into syncedData when using writeInsert inside onInsert handlers. Previously, when syncing server-generated fields (like IDs or timestamps) using writeInsert within an onInsert handler, the QueryClient cache was updated with combined visible state (including optimistic changes), which triggered the query observer to write optimistic values back to syncedData. Now the cache is correctly updated with only server-confirmed state, ensuring syncedData maintains separation from optimistic state. (#879)
-
Updated dependencies [
acb3e4f,464805d,2c2e4db,15c772f]:- @tanstack/db@0.5.4