0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/start-convex-trellaux
github-actions[bot] a58e01c604
ci: Version Packages (#8182)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-09-06 23:22:45 +02:00
..
.devcontainer docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
convex fix: strip invariant and warning strings from prod bundles (#7007) 2026-03-22 10:27:08 +01:00
public fix(react-router-with-query): accept queryKeyHashFn from _experimental_beforeQuery and add Convex DB example (#1988) 2024-08-02 12:21:47 +12:00
src rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
.env.local.example examples: use a shared Convex backend for StackBlitz (#2606) 2024-10-21 19:39:45 +02:00
.gitignore feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
.prettierignore chore(examples): cleanup the deps for the start examples (#2388) 2024-09-21 22:21:59 +12:00
.stackblitzrc feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
package.json ci: Version Packages (#8182) 2026-09-06 23:22:45 +02:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
tsconfig.json chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00
vite.config.ts docs: update examples/e2e to vite 8 (#6958) 2026-03-17 20:37:11 +01:00

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.

Start a new project based on this example

To start a new project based on this example, run:

npx gitpick TanStack/router/tree/main/examples/react/start-convex-trellaux start-convex-trellaux

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 convexQuery for use with useQuery, useSuspenseQuery etc.
  • 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

Getting Started

To run this example:

pnpm install
pnpm dev

Build

Build for production:

pnpm build

About This Example

This example demonstrates:

  • Convex database integration
  • Real-time updates
  • Complex UI state management