jamwt
jamwt13mo ago

Convex + SolidJS

for those who happen to be a fan of SolidJS, I remain a huge fan of it
7 Replies
jamwt
jamwtOP13mo ago
I updated my old example codebase to work with the latest Convex + SolidJS: https://github.com/jamwt/solid-convex
GitHub
GitHub - jamwt/solid-convex: A simple app demonstrating using Solid...
A simple app demonstrating using SolidJS with Convex - GitHub - jamwt/solid-convex: A simple app demonstrating using SolidJS with Convex
jamwt
jamwtOP13mo ago
thanks to convex's simple ConvexClient we shipped recently, and solidjs's clean abstractions, takes less than 50 LOC to hook up queries/mutations/and actions in solidjs: https://github.com/jamwt/solid-convex/blob/main/src/cvxsolid.ts
GitHub
solid-convex/src/cvxsolid.ts at main · jamwt/solid-convex
A simple app demonstrating using SolidJS with Convex - jamwt/solid-convex
jamwt
jamwtOP13mo ago
anyway, check it out if you're curious to try solid with convex! react is amazing, but it's always great to play around with the alternatives 😄
oscklm
oscklm13mo ago
Def checking this out! That’s cool! I’m also looking into trying a setup using pretty bare bones react project, with @tanstack/react-router, I’m thinking it could be cool to see what mixing that with convex does.
Cruz
Cruz13mo ago
Hey @oscklm, did you by any change figured out to use convex subscriptions inside @tanstack/react-router loader ? I was going to use @tanstack/react-router along w/ convex and useage of loaders would be amazing tbh, and would love to hear about your experience 😀
mikeysee
mikeysee8mo ago
Ah @Jamie you are the best! I was just wondering if anyone had tried this as I have been a fan for a long time too ❤️ I wonder how this would work with SolidStart Im actually not a massive fan of these SSR libs (like NextJS), I just feel it adds so much more complexity.. thoughts? Also I feel like convex works best on the client rather than server, when we can take advantage of the live updates
JubilantJam
JubilantJam5mo ago
For every subsequent load, you definitely want convex on the client for the realtime updates. For the FIRST load, it may be helpful to query some data first and then server-side render it into the page for first load. I think the goal is to use BOTH in concert to achieve the optimal UX. Literally just play around with different strategies until load time feels impeccable.

Did you find this page helpful?