Skip to content

feat(reactive queries): convert queries to use electric sql with live queries - #3

Merged
fubhy merged 5 commits into
mainfrom
chris.whited/feat-reactive-queries
Nov 9, 2025
Merged

feat(reactive queries): convert queries to use electric sql with live queries#3
fubhy merged 5 commits into
mainfrom
chris.whited/feat-reactive-queries

Conversation

@cmwhited

Copy link
Copy Markdown
Contributor

Description

Connects to the postgres db hydrated with data through ampsync.
Then uses @tanstack/react-db with electric-sql to run live queries for the data. Tanstack live queries let us define collections and perform joins across collections/tables whereas the raw useShape endpoint from electric does not

Comment thread app/src/routes/index.tsx Outdated
Comment thread infra/amp/config.toml Outdated
Comment thread app/src/lib/proxy.ts Outdated
@cmwhited
cmwhited requested a review from fubhy October 13, 2025 17:59

@fubhy fubhy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we pinning the endgeandnode/amp version?

@fubhy
fubhy merged commit 052eff8 into main Nov 9, 2025
2 checks passed
@fubhy
fubhy deleted the chris.whited/feat-reactive-queries branch November 9, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants