Optimizing Function Calls by Avoiding Redundant Abstractions
getCurrentUserInternal
, which is basically just a wrapper around another function called getCurrentUser
. I’m using this wrapper to access user information inside another function, getFacturapiLiveInstance
.
The problem is that getCurrentUser accepts QueryCtx, and in the action I only have access to ActionCtx.
Is there a better way?
...`default()` on Convex validators
.parse()
and .default()
are some of my favorite features of Zod validators, and it would be really great to not have to think about doing z.parse() before writing something to Convex and that Convex could automatically apply defaults specified in the schema.
Is this on the roadmap?...What is the recommended approach to structure my app?
convex-auth with sveltekit
Control Convex env variables output location
yarn convex dev
seems to forcibly create env.local
even though we have an .env
file that we want to use instead.
We are in an Expo React Native app where we cannot reliably use env.local
, instead we would ideally use env.development
and env.production
, but .env
can suffice (env.local
can not, however).
The docs https://docs.convex.dev/production/project-configuration#convexjson state that "npx convex dev writes the URL to the .env.local or .env file.
", but we can only get it to write to .env.local
.
...Sign up user with custom fields
How to run multiple local-only apps that use Convex
Prioritizing unifying docs and building doc integrations with Popular coding assistants
Designing a friend system with Convex
Convex
and am torn between two approaches:
1. Multiple indexes for better scalability.
2. Multiple entries in a single table for each friendship.
...Setting `_id` when creating documents with optimistic update
pages/<doc_id>
Doing this optimistically would break atm......instanceof Error
useQuery never enters Error state
Quering random row
How to do something on a specific date or time?
Why is it that file names only appear when uploading through the console?
Convex Auth Missing SITE_URL in Expo App
Querying for dev/preview/prod status within code?
process.env.NODE_ENV
to check for prod or dev but it registers preview deploys as production. (This is just the way NODE_ENV works so I’m wondering if there is an equivalent CONVEX_ENV of sorts)Buggy dashboard schema validator
Delete all files
stripe + process.env