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-03-02 16:15:53 +00:00
..
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
app fix: move to react-start (#3573) 2025-02-26 11:16:23 +01:00
convex chore(examples): update Convex React Query types (#2634) 2024-10-26 11:45:44 +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
.env.local.example examples: use a shared Convex backend for StackBlitz (#2606) 2024-10-21 19:39:45 +02:00
.gitignore fix(react-router-with-query): accept queryKeyHashFn from _experimental_beforeQuery and add Convex DB example (#1988) 2024-08-02 12:21:47 +12:00
.prettierignore chore(examples): cleanup the deps for the start examples (#2388) 2024-09-21 22:21:59 +12:00
.stackblitzrc examples: no trailing comma in stackblitzrc (#2613) 2024-10-21 23:26:59 +02:00
app.config.ts fix: move to react-start (#3573) 2025-02-26 11:16:23 +01:00
package.json release: v1.112.6 2025-03-02 16:15:53 +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(e2e,examples): downgrade to tailwindcss 3 (#3249) 2025-01-27 13:28:27 +13:00
tsconfig.json fix(react-router-with-query): accept queryKeyHashFn from _experimental_beforeQuery and add Convex DB example (#1988) 2024-08-02 12:21:47 +12: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