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
History 2025-09-12 18:06:25 +00:00
..
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
convex chore(examples): fix "board update" in start-convex-trellaux (#3802) 2025-03-19 14:55:01 +13: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 feat: restructure query-integration (#4643) 2025-08-08 23:52:29 +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 release: v1.132.0-alpha.22 2025-09-12 18:06:25 +00:00
postcss.config.mjs chore(e2e,examples): downgrade to tailwindcss 3 (#3249) 2025-01-27 13:28:27 +13:00
README.md chore(examples): spelling error on Start Convex Trellaux (#3583) 2025-02-27 13:16:13 +13:00
tailwind.config.mjs chore: move start e2e and example projects from ./app to ./src (#3712) 2025-03-09 23:35:20 +01:00
tsconfig.json chore: move start e2e and example projects from ./app to ./src (#3712) 2025-03-09 23:35:20 +01:00
vite.config.ts dont autoconfigure react/solid vite plugin anymore 2025-08-09 00:11:38 +02: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.

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 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