Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Update the guide content to TanStack DB 1.0 RC (latest: 1.0.0-rc.1.4) #100007

Send to my agent
Openfuko opened this issue 0 comments
fukocommented

The guide (src/data/tutorial/*.mdx, src/data/deep-dives/query-driven-sync.mdx) and the demo app on main were written for TanStack DB 0.x. Update both to the latest 1.0 release candidate. Right now that is @tanstack/db / @tanstack/react-db 1.0.0-rc.1.4. Use whatever is newest when this gets picked up.

Existing work

The local branch update-to-rc already moves the app to 1.0.0-rc.1.1 (it is not pushed yet):

  • d4d2a61 Upgrade TanStack DB to 1.0.0-rc.1.1
    • @tanstack/db and @tanstack/react-db 1.0.0-rc.1.1, @tanstack/query-db-collection 1.5.0
    • removed useLiveQuery dependency arrays
    • refetch explicitly in mutation handlers, because refetch is no longer automatic
    • read query collection errors from collection.health instead of utils.lastError
    • updated collections-intro, how-do-collections-work, optimistic-updates and the query-driven sync deep dive
  • f942639 Point the tutorial's GitHub links to the RC upgrade

To do

  • Bump to the latest RC (1.0.0-rc.1.4 today) and check the changes between rc.1.1 and the latest RC for anything else the guide covers
  • Re-read every tutorial page and the deep dive against the RC API and docs: code snippets, API names, and how sync, refetch and errors behave
  • Review what-is-next.mdx, which the branch has not changed yet
  • Check that the GitHub permalinks in the guide point to the final commits
  • pnpm typecheck, pnpm run test, pnpm check --fix

Notes

  • v2 already uses 1.0.0-rc.1.2 but has no guide content yet, so this issue is about the guide on main.
  • Related: #50 (watch @tanstack/db and open an issue when the tutorial gets outdated).

Sign in to join this conversation.