NerdkidChiki
NerdkidChiki3y 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
erquhart
erquhart3y 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
ballingt3y ago
Yeah seems useful to duplicate both pieces of information, I'll add this

Did you find this page helpful?