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

Create a custom wrapper for useQuery hook from react-query for future replacement #2991

Open
Made1ra opened this issue Dec 17, 2024 · 0 comments · May be fixed by #2992
Open

Create a custom wrapper for useQuery hook from react-query for future replacement #2991

Made1ra opened this issue Dec 17, 2024 · 0 comments · May be fixed by #2992
Assignees
Labels

Comments

@Made1ra
Copy link
Contributor

Made1ra commented Dec 17, 2024

Description:
Develop 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 self-assigned this Dec 17, 2024
@github-project-automation github-project-automation bot moved this to Project Backlog in SpaceToStudy Dec 17, 2024
@Made1ra Made1ra moved this from Project Backlog to In progress in SpaceToStudy Dec 17, 2024
@Made1ra Made1ra changed the title Create a custom hook for useQuery hook from react-query for future replacement Create a custom wrapper for useQuery hook from react-query for future replacement Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

1 participant