Skip to content
Source
Sign inSign up
TanStack/db

feat(vue-db): add infinite query binding #1724

Mergedtannerlinsleymerged 10 commits intomain fromrefs/pull/1724/headmerged by KyleAMathews(GitHub profile, opens in a new tab)

Showing 22 changed files with 51 additions and 0 deletions (loading 19).

x
0 of 22 viewed, 22 left
8 additions and 0 deletions.changeset/curly-ravens-listen.mdAdded
View file
@@ -0,0 +1,8 @@
+---
+'@tanstack/vue-db': minor
+'@tanstack/react-db': minor
+'@tanstack/svelte-db': patch
+'@tanstack/db': patch
+---
+​
+Add `useLiveInfiniteQuery` as a Vue binding over the shared live-query window controller. Align infinite-query behavior across React, Vue, and Svelte, including awaitable page fetches, safe page sizes, reactive page-depth preservation, ordered collection validation, shared input resolution, and shared-window cleanup.
2 additions and 0 deletionsdocs/framework/react/overview.mdModified
View file
@@ -130,6 +130,8 @@
```
​
+`fetchNextPage()` returns a promise that resolves after the page request settles. Failures are exposed through the returned `error` value and do not reject the promise.
+​
**Note:** The dependency array is only available when using the query function variant, not when passing a pre-created collection.
​
### useLiveSuspenseQuery
41 additions and 0 deletionsdocs/framework/svelte/overview.mdModified
View file