t
tRPC
t
tRPC
Any Idea why this result to empty object?
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
M
mark salsbery
•
12/25/22, 6:35 AM
At the time the object is returned
, the promise
(siteQuery
) hasn
’t resolved yet so the then function hasn
’t been called
.
Try making your procedure function async and then use await result
= siteQuery before returning the object
Any Idea why this result to empty object? - tRPC