riatsila
CCConvex Community
•Created by riatsila on 9/20/2024 in #support-community
Sorting different on backend vs frontend in React
I have a weird bug where I have a query that sorts a table of tasks based on "start_date".
When logging on the backend the sort is completed correctly, but the object received on the frontend is sorted by _creationtime.
When logging on the backend the sort is completed correctly, but the object received on the frontend is sorted by _creationtime.
const tasks = useQuery(api.tasks.getByProjectId, project?._id ? {projectId: project._id}: "skip");
Can sort tasks again on the frontend, but wondering if there's anything obvious I'm missing that would cause this behaviour!7 replies
CCConvex Community
•Created by riatsila on 9/2/2024 in #support-community
t.withIdentity with custom claims
We currently have some helper functions which check custom claims on the getUserIdentity object e.g. "orgId".
Am I right in thinking that in convex-test (0.0.28) these custom claims currently aren't supported when using t.withIdentity?
3 replies
CCConvex Community
•Created by riatsila on 8/15/2024 in #support-community
Testing with document Ids as a field
Trying out convex test and this code is resulting in an error, do I need to test create a record in the orgs table and then send that to the test mutation & match?
error:
4 replies