Convex Community

CC

Convex Community

Join the community to ask questions about Convex Community and get answers from other members.

Join

support-community

show-and-tell

general

self-hosted

announcements

Are immediately scheduled functions FIFO?

i.e. if I write ``` export const doLotsOfThings = internalMutation({ args: {}, handler: async (ctx) => {...

Making useQueries more type-safe

Small suggestion, change ```ts export type RequestForQueries = Record< string,...

Unconventional Authentication Implementation

I have an interesting client and one of his specifications is that he wants to keep users of the platform completely anonymous, but we still need a way to identify them, but without knowing their personal details. So he wants to use phone numbers to authenticate them and they encrypt the phone number in the database I don't really know how to go about implementing this with convex. The 2 ideas I have are: 1. To use the Lucia implementation to create a custom auth flow - but lucia is deprecated so I have to find the equivalent....

Http Action no authentication

```js export const generateUrlForToken = httpAction(async (ctx, request)=>{ const identity = await ctx.auth.getUserIdentity();
if(identity == null){...

useAuthToken hook is not working with Auth0. it returns null

```js <Auth0Provider domain="redacted" clientId="redacted" authorizationParams={{...

SwiftUI with Convex and Clerk problem :

in my app, I'm integrating Convex with Clerk auth, in my swiftUI ios app. Before signing in, I have no problems talking to the Convex Backend. I did all the steps. When I sign in, I print the auth state in the xcode logs, which says authenticated - with the JWT....

Offset-based pagination returns NULL

I'm trying to implement offset-based pagination however almost every query returns null. Random access works fine. Getting the total count gives me a number greater than the number of records in the table. I've "repaired" my aggregates. Setting the offset to a high value sometimes returns a result but seems to be a random field from the record.

npx convex dev problem

when ever i try to run it it gives me this i doubled checked every env var
No description

Convex Auth - Redirect to app?

I'm building a hybrid app, and I'm currently using Convex Auth, which works really well on the web. I'm using Capacitor to basically package my app into a webview. I'm wondering how I would make the Google oAuth redirect to my app, instead of the web. Thanks!...

optimistic updates with view transition

i already wrap the messages component with the ViewTransition with unique name and i tried wrapping startTransition callback on either setQuery & the handleSendMessage but it doesnt work. what's the right approach ? i just want a smooth animation when new message is inserted...
No description

Additional parameters in Email config

I'm using @convex-dev/auth/providers/Email to send verification emails and want to support multiple languages (e.g., 'en', 'ko') based on user settings. However, the current sendVerificationRequest doesn't accept custom parameters like customData to pass locale info, forcing me to hardcode templates (e.g., 'en'). #### Current Code ```typescript import { Email } from '@convex-dev/auth/providers/Email';...

Pre generating IDs

Seems that the mutateAsync function pre-emptively returns an ID for an entity. Just wondering if there is a way to do the same outside of using mutateAsync, like more programatically using the ConvexReactClient directly for example?

🤔 Forcing a Refresh in TanStack Query with Convex: How to Do It?

I set up TanStack Query with Convex Query, and everything works fine by following the documentation. However, one thing I noticed is that Convex/TanStack Query doesn't require a forced refresh. I need to force a refresh for a specific purpose. Can anyone guide me on how to do that?

Issue using externalPackages Not Excluding Dependencies

I am trying to use fabric fabric/node in a convex node action and it seems it's dependency canvas cannot be bundled and will produce this issue when deploying convex functions ``` No loader is configured for ".node" files: node_modules/fabric/node_modules/canvas/build/Release/canvas.node ...

Cloudflare Pages w/ Convex NEXT_PUBLIC_CONVEX_URL

Does anyone have any guidance on how to properly set NEXT_PUBLIC_CONVEX_URL for de/preview/prod when using Cloudflare pages for hosting? I've attached my workaround that currently lets me deploy with it set to my prod convex instance but would like it to still set to my dev convex deployment for non prod deploys
No description

Non OpenID Connect auth

I'm having some trouble getting custom auth working. I'm trying to get it working with privy.io The local provider seems to be set up correctly - and the app id and domain appear to be correct in the auth.config.ts file I believe what's happening is privy's JWKS endpoint doesn't match - which I think means privy isn't openid connect compatible Is there any way to work around this?...

SolidJS integration

Currently, solid start has already entered tanstack start, although it is not yet stable. I hope we have a convex integration available when it stabilizes. Is there a plan solid integration?

Error: Unable to start push

Unable to get past this error on local machine. No logs or stack traces showing cause and source of error. I have tried different ISPs, I also tried with a VPN but the error persists. Second screenshot is the folder structure...
No description

How to connect flutter and Convex

I am gonna make the Chatting app. Can be connected Flutter and Convex?...

Sorting all my documents

Hi, I want to do a normal query where I have a rank field on all of my documents and I want to return the top 10 documents by rank. Rank is indexed. Am I not able to do this? When I try to do my query I get the "over 8mb" error. Would appreciate some help, thanks!