Skip to content

Conversation

@jettapat-metier
Copy link
Collaborator

@jettapat-metier jettapat-metier commented Sep 16, 2025

Why did you create this PR

What did you do

  • Add query key from useCollectionListQuery into _CollectionListProvider

Screenshots / Recordings

Checklist

  • Self-reviewed your code
  • Wrote coverage tests
  • Added screenshots or recordings if applicable

@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2025

🦋 Changeset detected

Latest commit: 9f2f093

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

This PR includes changesets to release 8 packages
Name Type
@genseki/react-query Patch
@genseki/react Patch
@example/erp Patch
@example/ui-playground Patch
@genseki/next Patch
@genseki/plugins Patch
@genseki/prisma-generator Patch
@genseki/rest 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

@saenyakorn
Copy link
Member

I think we need to fix reactQuery.useInvalidateQueries instead.

  1. Remove empty object in the key
  2. Freeze the order of the key in the object

With these, we might fix the bug

@jettapat-metier jettapat-metier changed the title feat: return full query key from useCollectionListQuery hook [FIX] Query key in useQuery Sep 17, 2025
@saenyakorn saenyakorn changed the title [FIX] Query key in useQuery [FIX] Query key in useInvalidateQueries Sep 19, 2025
@saenyakorn saenyakorn merged commit 876273a into main Sep 19, 2025
1 check passed
@saenyakorn saenyakorn deleted the fix/invalidate-query branch September 19, 2025 07:36
This was referenced Sep 19, 2025
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.

4 participants