djbalinD
Convex Communityβ€’10mo agoβ€’
3 replies
djbalin

[convex-helpers]: useQueryWithStatus error: "could not find Convex client"

Calling useQueryWithStatus from my frontend causes this error for some reason:
Could not find Convex client! useQuery must be used in the React component tree under ConvexProvider. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app

I tried defining useQueryWithStatus in a few different locations in my convex folder, all with the same result. Updated to latest convex-helpers version.

import { makeUseQueryWithStatus } from "convex-helpers/react";
import { useQueries } from "convex/react";
export const useQueryWithStatus = makeUseQueryWithStatus(useQueries);
Was this page helpful?