-
Notifications
You must be signed in to change notification settings - Fork 70
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
Migrate to @tanstack/react-query (react-query v4) #61
base: main
Are you sure you want to change the base?
Conversation
Great work! Thanks for contributing! I will review and publish a dev release so people can try it out. As for the tests, I'm pretty sure most of our subscription tests need rewriting for v4, as we currently rely on the |
I can take a look on the broken tests too ASAP, I didn't saw #59 . My issue is on starting the test suite locally, I always get an error related with |
hmm haven't seen that before. I don't get that when i run them. Perhaps it's trying to use a different version of jest somehow? not sure. |
Hey @kaueDM, are you able to fix the test error? |
Is this getting released? |
Please release! ❤️ |
I'm currently out of time to take a look on the tests. If someone could help here, it'll be appreciated. |
a third of tests is failing 😁 |
Expected. I couldn't run the tests, so I didn't changed anything. |
Opps, missclick on the |
Tests are working for me.
It seems to bring expected result. EDIT: Just to explain - I refactored one of the tests, that expected calls to be triggered. No useEffect is needed. The tests seem simpler also. |
@kaueDM regarding your tests failing, seems that your jest is not recognising the flag. Perhaps you have old jest installed globally and it tries to use it instead of the local one? 🤔 |
If you like I can attempt to fix all the tests. Will you accept pr then? |
Is there any hope of this getting merged? |
when it releases? |
Would love to see the migration to v4 released at npm |
Any update? |
Is this gonna be released someday? |
I'm using react query 4, and I need this library for my new project... please @cabljac 🙂🙏🏻 |
+1 for this being merged in 😄 🙏 |
any news about this? |
I just started looking into react query firebase, is this getting merged at all? |
loosing hope for this merge. Might go back to ReactFire I think :( |
Overview
This PR migrates
react-query
fromv3
tov4
and:rollup
buildstarball
s withnpm pack
(npx lerna run pack
)Tests
I couldn't run the tests, got some weird errors
Caveats
I couldn't build using the current
UseFirestoreHookOptions
type, as a workaround I merged bothGetSnapshotOptions
andSnapshotListenOptions
:If someone finds a better way to handle this type, suggestions are welcome.
Related issues
Does not work with TanStack Query 4 #56
Error: No QueryClient set, use QueryClientProvider to set one #58