Skip to content

Fix/4407 set query data use inifinite query#4413

Merged
siddhsuresh merged 9 commits intoblitz-js:mainfrom
Daidalos117:fix/4407-setQueryData-useInifiniteQuery
Feb 7, 2025
Merged

Fix/4407 set query data use inifinite query#4413
siddhsuresh merged 9 commits intoblitz-js:mainfrom
Daidalos117:fix/4407-setQueryData-useInifiniteQuery

Conversation

@Daidalos117
Copy link
Contributor

Closes: #4407

What are the changes and their implications?

  • fixes setQueryData not working with useInfniniteQuery because internally it used same function for obtaining queryKey as other useQueries
  • introduces QueryType enum to distinguish between infnite and other queries inside setQueryData
  • fixes typing of setQueryData to be typed same as internal data type of react query

Bug Checklist

  • Changeset added (run pnpm changeset in the root directory)
  • Integration test added (see test docs if needed)

Feature Checklist

@changeset-bot
Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: 5dbd31d

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

This PR includes changesets to release 8 packages
Name Type
@blitzjs/rpc Patch
next-blitz-auth Patch
@blitzjs/next Patch
@blitzjs/auth Patch
@blitzjs/codemod Patch
@blitzjs/config Patch
@blitzjs/generator Patch
blitz Patch

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

@siddhsuresh siddhsuresh self-requested a review January 30, 2025 15:01
@Daidalos117
Copy link
Contributor Author

Hi @siddhsuresh, could you please check? 🙏

@siddhsuresh siddhsuresh merged commit 11c9f00 into blitz-js:main Feb 7, 2025
29 checks passed
@blitzjs-bot
Copy link
Contributor

Added @Daidalos117 contributions for doc and code

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setQueryData with useInfiniteQuery doesn't work

3 participants