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

Custom hooks Frontend #190

Closed
AntonioMrtz opened this issue Aug 10, 2024 · 5 comments · Fixed by #193
Closed

Custom hooks Frontend #190

AntonioMrtz opened this issue Aug 10, 2024 · 5 comments · Fixed by #193
Assignees
Labels
backend Backend related issues frontend Frontend related issues refactor Code changes or improvements that do not change code behaviour

Comments

@AntonioMrtz
Copy link
Owner

AntonioMrtz commented Aug 10, 2024

Description

Encapsulate fetch logic inside custom hooks and replace fetch.then for await. Add OpenAPI client to frontend

Context

Code repetition on queries has become a problem. Changing backend endpoints became harder because of multiple components having the same query spread all over the code.

How to do it

  • Refactor common fetch queries in custom hooks
  • Replace then for await
  • Include Swagger OpenAPI client

Testing

@AntonioMrtz AntonioMrtz added frontend Frontend related issues refactor Code changes or improvements that do not change code behaviour labels Aug 10, 2024
@AntonioMrtz AntonioMrtz self-assigned this Aug 10, 2024
@AntonioMrtz AntonioMrtz added the backend Backend related issues label Aug 12, 2024
AntonioMrtz added a commit that referenced this issue Aug 12, 2024
@AntonioMrtz AntonioMrtz linked a pull request Aug 13, 2024 that will close this issue
@AntonioMrtz AntonioMrtz reopened this Aug 13, 2024
AntonioMrtz added a commit that referenced this issue Aug 13, 2024
…ooks-frontend

Revert "#190: Custom Hooks Frontend"
AntonioMrtz added a commit that referenced this issue Aug 13, 2024
@AntonioMrtz AntonioMrtz removed a link to a pull request Aug 13, 2024
@AntonioMrtz AntonioMrtz linked a pull request Aug 13, 2024 that will close this issue
AntonioMrtz added a commit that referenced this issue Sep 1, 2024
@AntonioMrtz
Copy link
Owner Author

@AntonioMrtz
Copy link
Owner Author

get playlists by user

@AntonioMrtz
Copy link
Owner Author

@AntonioMrtz
Copy link
Owner Author

@AntonioMrtz
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues frontend Frontend related issues refactor Code changes or improvements that do not change code behaviour
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant