Closed radist2s closed 1 month ago
Latest commit: 4668fa636da7917511bd87cb9f1699b811fcd6fe
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/team-monite/monite-sdk/new/chore/proposal-remove-query-client-provider?filename=.changeset/early-sloths-marry.md&value=---%0A%22%40monite%2Fsdk-react%22%3A%20patch%0A---%0A%0Achore(proposal)%3A%20remove%20%60%3CQueryClientProvider%2F%3E%60%20and%20%60useQueryClient()%60%20usage%20%F0%9F%A7%B9%0A)
This PR removes the usage of
<QueryClientProvider/>
anduseQueryClient()
to prevent any potential conflicts with customer code that might also be using TanStack Query.Key Changes
<QueryClientProvider/>
anduseQueryClient()
from our codebase.QueryClient
is now mounted and unmounted directly within<MoniteContextProvider/>
.Additional Information
QueryClient
can now be accessed via theuseMoniteContext()
hook, streamlining the process and ensuring a cleaner integration.<QueryClientProvider/>
in the TanStack Query repository here.