Public
Edited
Oct 5, 2023
Fork of Annotation
Insert cell
Insert cell
Insert cell
c = import("https://esm.run/convex-dev/react")
Insert cell
origin = "https://dazzling-opossum-637.convex.cloud"
Insert cell
client = new c.ConvexReactClient(origin)
Insert cell
queryGenerator = (client, query, ...args) => {
const watch = client.watchQuery(query, ...args);
return Generators.observe((notify) => {
console.log("watch")
watch.onUpdate(() => notify(watch.localQueryResult()))
}
);
}
Insert cell
clientMessages = queryGenerator(client, "messages:list", Object.assign({}, {}))
Insert cell
Insert cell
c2 = await import("https://esm.run/convex/browser")
Insert cell
httpClient = new c2.ConvexHttpClient(origin)
Insert cell
Insert cell
mutable clientMessages_http = httpClient.query("messages:get")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more