Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Change layout of fetch functions #185

Open
GammaMicrowave opened this issue Jun 11, 2023 · 0 comments
Open

Change layout of fetch functions #185

GammaMicrowave opened this issue Jun 11, 2023 · 0 comments

Comments

@GammaMicrowave
Copy link
Contributor

  • Create a API folder in the route directory

  • abstract all the fetching functions into this API folder where each folder represent a route.

  • if it is nested inside a route then add the fetching function inside a folder.

  • Now use that function and fetch queries using useQuery instead of normal fetch functions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant