Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(openapi-react-query): Add query client to create client#2292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
arnaud9145 wants to merge2 commits intoopenapi-ts:main
base:main
Choose a base branch
Loading
fromarnaud9145:feat/add-query-client-to-create-client

Conversation

arnaud9145
Copy link

Changes

This PR is similar to#1814, but instead of adding the query client each time we call useQuery/useMutation/useSuspenseQuery/useInfiniteQuery, we pass the queryClient to the createClient once and for all. It is still possible to pass an other queryClient to those methods to override the default one if needed.

How to Review

Create a client by passing a queryClient, check that it is this client that is used instead of the default one.

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

mperonnet, jean-smaug, and abhiaagarwal reacted with thumbs up emoji
@arnaud9145arnaud9145 requested a review froma team as acode ownerMay 5, 2025 13:18
@netlifyNetlify
Copy link

netlifybot commentedMay 5, 2025

👷 Deploy request foropenapi-ts pending review.

Visit the deploys page to approve it

NameLink
🔨 Latest commit23d593d

@changeset-botchangeset-bot
Copy link

🦋 Changeset detected

Latest commit:23d593d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
NameType
openapi-react-queryMinor

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

Copy link

@jean-smaugjean-smaug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👏
Think it should fix#2266

arnaud9145, mperonnet, and caribouflex reacted with hooray emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jean-smaugjean-smaugjean-smaug approved these changes

@duncanbeeversduncanbeeversAwaiting requested review from duncanbeeversduncanbeevers is a code owner automatically assigned from openapi-ts/maintainers

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@arnaud9145@jean-smaug

[8]ページ先頭

©2009-2025 Movatter.jp