DavidKim
DavidKim
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
of course i dont mind! ❤️ thank you for the helppp
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
smart smart
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
ahhh you use the creationtime!
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
thank you so much!!!
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
yeah similar ! im building ~ something like an airtable ~ and wanted to do fun animations when data changes
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
I am still curious how you could distinguish between the row rendering for the first time (say on refresh, or when you open the page) vs a row being added via document adding? because I see that when i refresh the page, no highlights go off. (Sorry for so many questions!! really appreciate the help)
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
ahh thank you!
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
I noticed you have condition checks to prevent highlighting if row is being rendered for the first time but in the dashboard, if i add a new document (a row is being rendered for the first time), it is highlighted -- is there a way you are distinguishing between a new document being added vs rows being rendered for the first time?
19 replies
CCConvex Community
Created by DavidKim on 11/15/2024 in #support-community
How does the convex dashboard animate data change?
❤️
19 replies
CCConvex Community
Created by DavidKim on 12/11/2022 in #general
Potentially a dumb question about which
ahh you're right; it wasn't inferring properly because I originally did not type the id correctly. Thank you !!
7 replies
CCConvex Community
Created by DavidKim on 12/11/2022 in #general
Potentially a dumb question about which
From DX perspective, I think the only downside of
const space = await db.get(id) as Document<"spaces">;
const space = await db.get(id) as Document<"spaces">;
is that I have to type it with as where as the indexed query can infer the type for me but not sure if this is a big deal
7 replies
CCConvex Community
Created by DavidKim on 12/11/2022 in #general
Potentially a dumb question about which
thank you !
7 replies
CCConvex Community
Created by DavidKim on 12/11/2022 in #general
Potentially a dumb question about which
If 2 is the same as indexing by _id, I have no need for indexing by _id ! so 2 it is !
7 replies
CCConvex Community
Created by DavidKim on 12/11/2022 in #general
Potentially a dumb question about which
Read the docs explaining the performance gain of using indexes (I loved the explanation). I have usecases where I want to grab a document by it's _id . And I was wondering if
const space = await db.query("spaces").filter((q) => {
return q.eq("_id", spaceId)
}).unique();
const space = await db.query("spaces").filter((q) => {
return q.eq("_id", spaceId)
}).unique();

is faster or
const space = await db.get(spaceId) as Document<"spaces"> ;
const space = await db.get(spaceId) as Document<"spaces"> ;
or
const space = await db
.query("spaces")
.withIndex("by_id", (q) =>
q.eq("_id", spaceId)
).unique()
const space = await db
.query("spaces")
.withIndex("by_id", (q) =>
q.eq("_id", spaceId)
).unique()
And if it's the last option, is it possible to index by _id ?
7 replies
CCConvex Community
Created by DavidKim on 12/3/2022 in #general
Upon running npx convex dev I get the
sorry for the false alarm!
27 replies
CCConvex Community
Created by DavidKim on 12/3/2022 in #general
Upon running npx convex dev I get the
yeah, hospital Wifi. Taking care of someone right now. I wonder if someone decided to block Convex
27 replies
CCConvex Community
Created by DavidKim on 12/3/2022 in #general
Upon running npx convex dev I get the
weird thing is on this wifi, Convex was working for a couple hours before it stopped working out of nowhere
27 replies
CCConvex Community
Created by DavidKim on 12/3/2022 in #general
Upon running npx convex dev I get the
wild
27 replies
CCConvex Community
Created by DavidKim on 12/3/2022 in #general
Upon running npx convex dev I get the
so i switched to my mobile hotspot and now it works
27 replies