import { useLiveQuery } from "@cuttlefish-sync/react";
import { db } from "./database";
function IssuesList() {
const { data } = useLiveQuery(
db
.selectFrom("issues")
.selectAll()
.where("project_id", "=", projectId)
.where("status", "in", ["todo", "in_progress"])
.orderBy("updated_at", "desc"),
);
return <>...</>
}Works with PostgreSQL using logical replication.
Use adapters for frameworks to make Cuttlefish feel idiomatic alongside RSC, SSR, loaders, and Server Actions.

Use adapters to define queries in your favorite ORM, no need to learn a new API.

