NerdkidChiki
NerdkidChiki16mo ago

how do i create a loading ui when using useQuery

i want to create a loading skeleton for my poage when querying for data, i wanna know what boleans i should use. Does my query initially return undefined or null?
3 Replies
ballingt
ballingt16mo ago
erquhart
erquhart16mo ago
The other half is that queries that actually return undefined will show up as null in the client, so undefined can only mean loading: https://docs.convex.dev/functions/query-functions#query-responses @ballingt might be helpful to colocate this info somehow in the docs
ballingt
ballingt16mo ago
Yeah seems useful to duplicate both pieces of information, I'll add this

Did you find this page helpful?