prometheas 🔥
CCConvex Community
•Created by prometheas 🔥 on 12/1/2024 in #support-community
The ctx.storage.getUrl() method is marked as deprecated, but Convex docs provide no alternatives
The storage serve docs direct the use of
ctx.storage.getUrl()
, but my IDE says the function is deprecated.
https://docs.convex.dev/file-storage/serve-files
What, then, is the best practice for accessing stored file data?4 replies
CCConvex Community
•Created by prometheas 🔥 on 11/20/2024 in #support-community
My attempts to run `convex dev` fail to deploy code changes
When I run
npx convex dev -v --tail-logs
, I get output about skipped files (the usual suspects about multiple dots and stuff in convex/_generated
), and a raft of Preparing convex/**
messages, but that's it — no messages about deployment.
Over in the dashboard, no updates in my Development deployment instance.11 replies
CCConvex Community
•Created by prometheas 🔥 on 9/14/2024 in #support-community
Trouble using useQuery and convexQuery with queries that use ctx.auth.getUserIdentity()
So, like it says on the tin — I am unable to use the standard
useQuery()
(from convex/react
) or the @convex-dev/react-query
package's convexQuery()
functions to call query()
functions in my Convex API that check ctx.auth.getUserIdentity()
as an auth guard mechanism.
In other places in my nextjs project (server actions), I can invoke such query functions by adding a third argument with an auth token, like this:
Am I using the wrong approach for auth guarding the query funciton? Or is there some different mechanism for passing a token to the useQuery()
and convexQuery()
functions?14 replies
CCConvex Community
•Created by prometheas 🔥 on 9/10/2024 in #support-community
How to handle errors with the `usePaginatedQuery()` React hook?
Greetings, all 👋 I'm brand-new to the discord community, and also in fact somewhat new to Convex (two months, and overall pleased)…
So, my question: I'm using
usePaginatedQuery()
to load realtime chat messages powered by Convex, and am seeking guidance on error handling.
I've always got an eye towards error handling which is "extra-strength" when it comes to anything involving network operations 😉 but am finding a lack of any mention in the usePaginatedQuery()
docs about error handling of any kind (in fact the only in-page search result for the string "error" highlights the API reference link in the docs nav 😅 ).
For convenience: https://docs.convex.dev/database/pagination
So I'm wondering: are there any best practices that either end-users or even Convex team members have found to be especially useful and effective?
And, to piggy-back with a (100% relevant, at least!) feature request for the team: please consider adding an error
key to the hook return value.20 replies