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

fix: makeQueryCache config was not optional in the type def #592

Merged

Conversation

jackmellis
Copy link
Contributor

@jackmellis jackmellis commented Jun 19, 2020

I'm just trying out v2 while a lot of our code is in a non-release phase (not sure when you plan on fully releasing v2?), so happy to throw any PRs for bits and pieces.

This started as a single quick type fix but it's turned into a general "fix the types" PR...

  • The makeQueryCache config should be optional
  • Adding the enabled option to the query opts
  • Updating ReactQueryProviderConfig type to reflect the new 3-part structure
  • I've removed the force flag from everywhere as it's no longer used
  • I've added idle to the list of statuses
  • I've also exported this as QueryStatus as I was often having to manually write status: 'success' | 'loading' | 'error' when we're passing the status into other components

@jackmellis jackmellis force-pushed the fix/make-query-cache-optional-config branch from e44d4ab to d86187b Compare June 19, 2020 13:45
@tannerlinsley tannerlinsley merged commit 591dabd into TanStack:next Jun 19, 2020
@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 2.0.0-next.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants