diff --git a/.changeset/bumpy-wombats-yell.md b/.changeset/bumpy-wombats-yell.md deleted file mode 100644 index 6e3f1bb5e..000000000 --- a/.changeset/bumpy-wombats-yell.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@tanstack/db-collections": patch ---- - -Replace `queryCollection.invalidate()` with `queryCollection.refetch()`. - -This means that we actually wait for the collection to be updated before -discarding local optimistic state. diff --git a/examples/react/todo/CHANGELOG.md b/examples/react/todo/CHANGELOG.md index b2f39fda3..7be5c04dd 100644 --- a/examples/react/todo/CHANGELOG.md +++ b/examples/react/todo/CHANGELOG.md @@ -1,5 +1,12 @@ # examples/react/todo +## 0.0.7 + +### Patch Changes + +- Updated dependencies [[`0bbf4c4`](https://github.com/TanStack/db/commit/0bbf4c46e01b382a70a437f05dfc09c9ff749a15)]: + - @tanstack/db-collections@0.0.5 + ## 0.0.6 ### Patch Changes diff --git a/examples/react/todo/package.json b/examples/react/todo/package.json index 5cb6e1173..8bfd35f9a 100644 --- a/examples/react/todo/package.json +++ b/examples/react/todo/package.json @@ -1,7 +1,7 @@ { "name": "examples/react/todo", "private": true, - "version": "0.0.6", + "version": "0.0.7", "dependencies": { "@tanstack/db-collections": "workspace:*", "@tanstack/query-core": "^5.75.7", diff --git a/packages/db-collections/CHANGELOG.md b/packages/db-collections/CHANGELOG.md index b1555f83d..88dba93a8 100644 --- a/packages/db-collections/CHANGELOG.md +++ b/packages/db-collections/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/db-collections +## 0.0.5 + +### Patch Changes + +- Replace `queryCollection.invalidate()` with `queryCollection.refetch()`. ([#109](https://github.com/TanStack/db/pull/109)) + + This means that we actually wait for the collection to be updated before + discarding local optimistic state. + ## 0.0.4 ### Patch Changes diff --git a/packages/db-collections/package.json b/packages/db-collections/package.json index 8e91e05c8..609e336be 100644 --- a/packages/db-collections/package.json +++ b/packages/db-collections/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/db-collections", "description": "A collection for (aspirationally) every way of loading your data", - "version": "0.0.4", + "version": "0.0.5", "dependencies": { "@tanstack/db": "workspace:*", "@tanstack/query-core": "^5.75.7",