ConvexReactClient query() return type?
The docstring (and the type annotation) says the return of
query()
should be a Promise
of the result, but if there's an existing result, it gets returned directly without being wrapped in a promise. Is this a bug?
https://github.com/get-convex/convex-js/blob/main/src/react/client.ts#L459GitHub
convex-js/src/react/client.ts at main · get-convex/convex-js
TypeScript/JavaScript client library for Convex. Contribute to get-convex/convex-js development by creating an account on GitHub.
1 Reply
That's a bug.