RJ
RJ
CCConvex Community
Created by Eva on 11/30/2024 in #support-community
React Testing Library + Vitest + Convex Test?
I just tried using this fake Convex client to test a React hook, and ran into difficulties due to the fact that this fake doesn't simulate the network delay (in the form of useQuery initially returning undefined). I tried to patch it but the code that it's mocking (the ConvexReactClient) is just too complex for me to grasp sufficiently well for this task, so I gave up. I'm going to go with my original approach of just mocking the useQuery hook directly, but this feels a lot more brittle. It would be really nice to have an official testing utils for the frontend in convex-test, like y'all have already provided for the backend. Just like the backend testing utils, I think it's a bit of fraught task for users to handle themselves, as it seems like it involves a lot of knowledge of Convex internals to do properly.
16 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
Makes a big difference
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
I’ve already gotten use out of it! Thank you!
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
Sorry 🤦‍♂️
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
No description
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
Haha don't apologize, looking forward to it!
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
yes that is exactly what I want 😄
29 replies
CCConvex Community
Created by RJ on 12/9/2024 in #support-community
Fuzzy search for function names in functions panel
1. I have a lot of functions that are namespaced/nested in folders, like this: namespaceOne/namespaceTwo/fileOne:myFunction. They may even have similar names, such that (for example) there's another function like this: namespaceThree/namespaceFour/fileTwo:myFunction. So it's easier for me to pull up the exact function I'm looking for if I can first type something like namespaceThree followed by myFunction, for a final query that looks like namespaceThreemyFunction 2. Sometimes I don't remember the name of the exact function I'm looking for, but I remember which, say, top-level namespace it's in. In this case it's helpful to start by typing the name of that namespace, and then to try out different terms from there (to effectively search within that namespace).
29 replies
CCConvex Community
Created by Tom Redman on 12/6/2024 in #support-community
Not sure why this is throwing a "multiple paginated queries" error
So the (implicit) suggestion is to either just use collect(), or break it up across multiple Convex functions
10 replies
CCConvex Community
Created by Tom Redman on 12/6/2024 in #support-community
Not sure why this is throwing a "multiple paginated queries" error
I would guess that the idea behind this limitation is that otherwise, using paginate to iterate through all of the documents in a table like this would be basically equivalent to doing myQuery.collect(), with the same shortcomings.
10 replies
CCConvex Community
Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
Great point, and also this sounds fantastic
38 replies
CCConvex Community
Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
Also, I agree with Tiago that a ProseMirror plugin would be ideal. It's trivial (I think) to convert them to Tiptap plugins: https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#prosemirror-plugins-advanced
38 replies
CCConvex Community
Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
Which is awesome
38 replies
CCConvex Community
Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
Exactly yeah, that's how Scroll works, but it sounds like Ian is going to package it up in a Convex component for easy project integration, and add more features.
38 replies
CCConvex Community
Created by Eva on 11/30/2024 in #support-community
React Testing Library + Vitest + Convex Test?
Thanks 🙂
16 replies
CCConvex Community
Created by Eva on 11/30/2024 in #support-community
React Testing Library + Vitest + Convex Test?
Ahh right, makes sense!
16 replies
CCConvex Community
Created by Eva on 11/30/2024 in #support-community
React Testing Library + Vitest + Convex Test?
I don't see where ConvexReactClientFake is exposed in convex-helpers, am I missing something?
16 replies
CCConvex Community
Created by David Alonso on 11/29/2024 in #support-community
Exponential number of indexes required?
I don't, but this may be a good candidate for a new support thread (for better visibility, if nothing else)
46 replies