#astro + solid-js
3 messages · Page 1 of 1 (latest)
Hi @junior chasm. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, Convex can work with Astro + Solid, but there’s no Astro- or Solid-specific client in the docs today.
From the knowledge sources:
- Convex provides generic JavaScript clients (
ConvexClientandConvexHttpClient) that work in “any JavaScript runtime that implementsfetchorWebSocket,” not just React. [JS clients] - For frameworks without a dedicated client (Angular is given as an example), the recommended approach is to use the generic
ConvexClientfromconvex/browser. [Angular thread; Node/JS client]
Astro + Solid can therefore use:
ConvexHttpClientfor server-side (Astro server routes, SSR, scripts).ConvexClienton the client side (Solid components) to subscribe to queries and run mutations.
What’s not in the sources:
- There’s no official example or guide specifically for Astro or Solid.
- There’s no Solid-specific hook API like
useQueryfor React documented here.