Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Convex auth setting user password.

I'm workin on an app where I want users to be able to change their password. How do I hash and verify the password from user input? I'm using the Password provider and there doesn't seem to be a simple function to do it. I tried Password().crypto?.hashSecret() from "@convex-dev/auth/providers/Password";...

Convex Helpers 0.1.101 -> 0.1.102 breaking changes - Cannot intersect validators

If i upgrade to 0.1.102 or 0.1.103 I cant bundle and i get: ```ts ✖ Error fetching POST https://confident-gerbil-241.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing: Loading the pushed modules encountered the following...

Workpool OCC error

Using the workpool component and got the error shown below. An action is put on a workpool queue, with maxParallelism=1, when that action has been running for 9min but hasn't finished, it enqueues another action that finishes the job (i.e. a recursive action to get around the 10min action limit). Unfortunatly it looks like I get an OCC error (assuming this has bubbled up from postgres). ``` lib:enqueue...

[Polar] Error - Customer not created

Hi, I started using Polar component and noticed that I always get the same error for CheckoutLink component - Customer not created. I create user via Clerk and then sync via Convex. In my case the "customer" is org from Clerk (workspace in convex db). At some point it was actually working after some actions which I dont remember sadly (maybe I updated email for workspace). Is it critical that I create workspace without email firstly and only after creation updating row with the contact email? I...

CustomCtx + ents not inferring wrapper for custom ctx.runMutations()

I'm a little lost. I took my code from the action session wrapping for doing custom ctx.runMutation() and tried to do that since we now have ctx.runMutation available in mutations. Goal ```ts...

Subject: Implementing Suspense-like loading patterns with Convex useQuery

Hi Convex team, I'm trying to implement a UX pattern where users can click on a tab that needs data, but instead of seeing a loading state, they see content from another tab while the data loads in the background. Once ready, it automatically transitions to the requested tab. Current Implementation:...

multiple development deployments

Hi, I was wondering if it would be possible to create multiple development deployments for a single project and user. This is not currently possible using the management api (as far as I can tell). I am trying to use separate git worktrees to independently work on features using claude code. It would be quite useful to be able to spin up a full development environment on a worktree for claude code to use.

support for module naming or separate .internal.ts .api.ts files

Just posted this via the feedback form but will post it here in case anyone else wants to comment on it. I currently organise all my code as follows: convex...

Trouble with Airbyte Import

I am trying to move a fairly large database into convex, tables with 10s of millions of rows but Airbyte just hangs on the first one after about 20k rows. I am curious if others have experienced that with Airbyte? I am moving from a SQL Azure database to convex and trying to get it to transfer. Starting to think through other alternative approaches....

Workflow component code update

Context: let’s assume we use the workflow component and we have some long running flows (30 days..) I was wondering what is happening with running workflows when we push an update that will update the logic of the flow. I couldn’t find any mention of this in the docs....

wrapDatabaseWriter GRANTS access by default

Hey folks, we started to use wrapDatabaseWriter for auth checks and I was very surprised to see in the code that it GRANTS access if no rule is found... Why is that the case? That seems very dangerous for an auth helper...

Management API & token auth

1. management api base url: https://api.convex.dev/v1 2./deployments/:deployment_name/create_deploy_key keeps on returning null 3. how do i auto login convex dev with access token like `team:barrel-...|tokenhere'...

Architecture Diagram

My company's infosec department requires an architecture diagram so they can assess "risk". Normally they require that we add ip restriction to our DBs, but I'm trying to argue that shouldn't be the case for modern web applications (that are more focused on OLTP), but rather for OLAP use cases. Does anyone know of an official one? It appears that you need paid support to talk to anyone from convex....

Make BaseConvexClient.localQueryResultByToken public

Given BaseConvexClient.subscribe returns a queryToken, it would be useful to have BaseConvexClient.localQueryResultByToken public.

Do Preview Environments Delete Themselves?

Do Preview ENVs delete themselves after a certain amount of time? My previous dev instance - that I made a specific deploy key for, is now gone?...

Local backend did not start on port 3210 within 10 seconds.

convex dev --until-success --run init waiting for local backend to start... ✖ Local backend did not start on port 3210 within 10 seconds. ✖ Hit an error while running local deployment....

Convex error handling best practices

I am new to convex, and looked up the relevant error handling docs. There are some Expected errors, and there could be convex-specific errors (network errs, etc) I had some questions regarding error retries and how to handle them...

Convex schema/functions design advice for dashboard app

We're building a dashboard-focused web app and need Convex schema/function design advice for handling frequent layout updates efficiently. Our data model: - Users create multiple dashboards (~30 per user) - Each dashboard contains multiple widgets that can be:...

Stuck trying to get Tanstack Start + Clerk working

All I did was the following pnpm create convex@latest Then chose tanstack start ...