mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| .vscode | ||
| convex | ||
| public | ||
| src | ||
| .env.local.example | ||
| .gitignore | ||
| .prettierignore | ||
| .stackblitzrc | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Trello-like example using Convex DB
This is a TanStack Start demo using Convex as the database. It is similar to the start-trellaux example but uses a cloud Convex deployment instead of an in-memory database.
To run this example:
pnpm install
pnpm dev
Convex
Convex is an open source Reactive backend made by convex.dev, a sponsor of TanStack Start.
This example uses Convex with TanStack Query and TanStack Start to provide
- Typesafe TanStack Query options factories like
convexQueryfor use withuseQuery,useSuspenseQueryetc. - Live-updating queries: updates come in over a WebSocket instead of requiring polling
- Automatic query invalidation: when a mutation succeeds all queries it affects update automatically
- Selective optimistic update rollback: when a mutation succeeds only its update will be rolled back, with other optimistic updates reapplied
- Consistent snapshot reads of database state: /messages will never return a foreign key for a /user that doesn't exist until the next fetch