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

refactor: use query hook #360

Open
donni106 opened this issue Oct 6, 2021 · 0 comments
Open

refactor: use query hook #360

donni106 opened this issue Oct 6, 2021 · 0 comments
Assignees
Labels
refactoring Updating existing code

Comments

@donni106
Copy link
Member

donni106 commented Oct 6, 2021

we want to have an own use query hook!


currently we have a lot of duplicated logic for using queries inside of functional components.

it would be beneficial for readability of the code as well as for cleaning up the structure of the components to extract that logic into a custom useQuery hook, that includes all the additional logic we always use in tandem, like useRefreshTime etc.

@donni106 donni106 added the enhancement New feature or request label Oct 6, 2021
@donni106 donni106 added refactoring Updating existing code and removed enhancement New feature or request labels Oct 6, 2021
@donni106 donni106 added the hacktoberfest https://hacktoberfest.digitalocean.com label Oct 13, 2021
@digorath digorath changed the title refactor: user query hook refactor: use query hook Oct 13, 2021
@donni106 donni106 removed the hacktoberfest https://hacktoberfest.digitalocean.com label Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Updating existing code
Projects
None yet
Development

No branches or pull requests

2 participants