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

Created a custom wrapper for useQuery hook from react-query #2992

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Made1ra
Copy link
Contributor

@Made1ra Made1ra commented Dec 17, 2024

Description:
Developed a custom wrapper around the useQuery hook provided by react-query. The goal is to centralize configurations and streamline the eventual replacement of the underlying data-fetching library if needed. This custom hook should:

  • Handle default options (e.g., caching, retries).
  • Provide a consistent interface across the project.
  • Allow for custom transformations or pre/post-processing of data.
  • Facilitate easy debugging and logging for query operations.

Context:
This approach decouples the application code from the specific implementation of react-query, enabling future flexibility and reducing the impact of potential library changes.

@Made1ra Made1ra changed the title Created a custom hook for useQuery hook from react-query Created a custom wrapper for useQuery hook from react-query Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a custom wrapper for useQuery hook from react-query for future replacement
1 participant