Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support react-query v5 #88

Open
Tbaut opened this issue Feb 12, 2024 · 0 comments
Open

Support react-query v5 #88

Tbaut opened this issue Feb 12, 2024 · 0 comments

Comments

@Tbaut
Copy link

Tbaut commented Feb 12, 2024

Describe the bug
react-query-subscription doesn't support react-query v5, see error below "No matching export for import "hashQueryKey""
Indeed, it has been renamed to hashKey see https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5#hashquerykey-has-been-renamed-to-hashkey
To Reproduce
Steps to reproduce the behavior:

  1. Use react-query-subscription together with react-query v5

Expected behavior
No error

Screenshots / Error

There's an error at compilation

✘ [ERROR] No matching export in "../../node_modules/@tanstack/react-query/build/modern/index.js" for import "hashQueryKey"

    ../../node_modules/react-query-subscription/es/use-infinite-subscription.js:3:9:
      3 │ import { hashQueryKey, useInfiniteQuery, useQueryClient } from '@tanstack/react-query';

Context (please complete the following information):

  • Node version: v20
  • React Query version: 5
  • OS: Ubuntu
  • Browser: any
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

No branches or pull requests

1 participant