Skip to content

react: throw the missing ConvexProvider error from usePaginatedQuery - #214

Open
slavarazum wants to merge 1 commit into
convex:mainfrom
slavarazum:fix/paginated-query-missing-provider
Open

slavarazum wants to merge 1 commit into
convex:mainfrom
slavarazum:fix/paginated-query-missing-provider

Conversation

@slavarazum

Copy link
Copy Markdown

Without a ConvexProvider, usePaginatedQuery and usePaginatedQuery_experimental crash with Cannot read properties of undefined (reading 'logger'), which doesn't say what's wrong. useQuery, useMutation and useAction throw Could not find Convex client! instead. This adds the same check to both hooks.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant