Skip to content

fix: Export TanStackQueryProvider as default for Query Client addon#381

Closed
abbas-roholamin wants to merge 1 commit intoTanStack:mainfrom
abbas-roholamin:fix/query-clien-addon
Closed

fix: Export TanStackQueryProvider as default for Query Client addon#381
abbas-roholamin wants to merge 1 commit intoTanStack:mainfrom
abbas-roholamin:fix/query-clien-addon

Conversation

@abbas-roholamin
Copy link

Previously, in issue #372, the Query Client addon file only exported getContext(), which returned a QueryClient instance.

This change adds and exports TanStackQueryProvider as the default export, wrapping the app with QueryClientProvider using the queryClient from getContext(). It can also close the PR #373

This ensures:

  • Consumers can directly use the provider as the default export
  • The Query addon works correctly without requiring manual provider setup
  • No changes to query configuration logic — only the provider export structure was updated

@tannerlinsley
Copy link
Member

Superseded by #382, which includes a full fix for query provider scaffolding in both query-only and tRPC+query generated apps (with validated smoke builds).

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.

2 participants

Comments