github TanStack/db @tanstack/db-ivm@0.1.11

latest release: @tanstack/query-db-collection@0.2.31
10 hours ago

Patch Changes

  • Add utils.setWindow() method to live query collections to dynamically change limit and offset on ordered queries. (#663)

    You can now change the pagination window of an ordered live query without recreating the collection:

    const users = createLiveQueryCollection((q) =>
      q
        .from({ user: usersCollection })
        .orderBy(({ user }) => user.name, "asc")
        .limit(10)
        .offset(0)
    )
    
    users.utils.setWindow({ offset: 10, limit: 10 })

Don't miss a new db release

NewReleases is sending notifications on new releases.