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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more