Update the guide content to TanStack DB 1.0 RC (latest: 1.0.0-rc.1.4) #100007
Send to my agentOpen
fuko opened this issue ·0 comments
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/dband@tanstack/react-db1.0.0-rc.1.1,@tanstack/query-db-collection1.5.0- removed
useLiveQuerydependency arrays - refetch explicitly in mutation handlers, because refetch is no longer automatic
- read query collection errors from
collection.healthinstead ofutils.lastError - updated
collections-intro,how-do-collections-work,optimistic-updatesand 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.4today) 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#
v2already uses1.0.0-rc.1.2but has no guide content yet, so this issue is about the guide onmain.- Related: #50 (watch
@tanstack/dband open an issue when the tutorial gets outdated).
Sign in to join this conversation.