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
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 docsYeah seems useful to duplicate both pieces of information, I'll add this