Can I use Convex with Qwik as of today
Can I use Convex with Qwik as of today ? I’m switching from NextJs (App Router) to Qwik.
12 Replies
Hey @Teddy , we don't have a Qwik integration yet. I'm curious what benefits you are seeing in Qwik over Next.js?
@Michal Srb There are a lot, but to describe a few : it was annoying to think about server and client components. I had to split a lot of code in multiple files. Everything can break because of one ´server only’ import inside a client component that can be very hard to debug. With Qwik, everything just works the way I expect and the syntax is pretty close to React. There are also signals that are way more performant than the VDOM React uses. The hot module reload is also way faster, JS is lazy loaded by default (only when it’s needed and so much more (routeLoaders that can prefetch data server side and be imported in any component, routeAction, resumability,..)
I see, thanks for the info! We are looking at several potential future client integrations (Svelte, Solid.js, ...) and might explore Qwik in the future.
Is server side rendering very important to your project? If you could share (feel free to DM me as well), can you share why? Thanks!
I’m building a 3D model marketplace, so server side rendering is very much needed.
Is it possible that with Convex you might not need server side rendering, given that you'll have a backend at your disposal?
Server-side rendering might be needed in the Jamstack model to run some code on the backend, but with a backend like Convex it should only matter for the page load speed (and the benefits of server-side rendering there can be overestimated).
Convex is definitely a great fit for a complicated project such as a marketplace. You might want to stick with a React framework and go to the client-side-app-connected-to-a-backend route.
Let me know if I'm missing something, always super interesting to learn about developer needs!
Wouldn’t I be losing on SEO by building a client-side app ? I think I’ll take some days to check out some tutorials/information videos about convex and continue to build (with Qwik and Supabase) in a way that I could « easily » transition from Supabase to Convex later on. (Supabase being Postgres would be easier to transition than Firebase I guess). Since I have the domain types and SQL table creation with policies all written from the previous NextJS version of the website, it seems like the easiest way for me. I think I’ll also switch from the Supabase default auth to auth0 as well so that would be one less thing to care about in a later switch to convex. But I’m definitely planning on switching to convex as soon as a Qwik client library lands. I’ve already abstracted the Supabase implementation from the ui code through the use of facade interfaces so pretty much all I have to build is the « dataAccess » layer.
Teddy if you don't need the reactivity you should be able to use the ConvexHttpClient. See: https://docs.convex.dev/client/javascript
JavaScript | Convex Developer Hub
The ConvexHttpClient is the simplest
I found this video where the guy is building a library to use convex with solidjs (https://youtu.be/5Gck3MsGl5Y). Since the code is available on github, I can try doing the same for Qwik.
Jamie Turner
YouTube
Let's use Convex with SolidJS!
We run through the basics of SolidJS (https://www.solidjs.com/) and Convex (https://convex.dev), two cool new technologies in the web development space. Then, we build a simple library to combine them to make globally reactive state.
SolidJS is a reactive web framework that is a compelling alternative to React, and Convex is a global state mana...
That guy is really good.
We talked with Misko Hevery not long ago and he was confident that we could integrate Convex, but I can’t promise how much effort it will be. Keep us posted!
lol in case it wasn’t clear for folks following along. That guy is the CEO of Convex.
I haven’t watched it yet so I didn’t know. Will give it a try and keep posting if I end up getting something working. Plus I discovered convex just yesterday from Jack Herrington’s video and got sold immediately.
Hey @Teddy, did you manage to get Convex working with Qwik? Would love to hear how it went.