gbowne1 / codebooker

This is a book recommendation app created with React 18.2 and MUI for coders/programmers looking for reccomendations to books on programming/coding to read
MIT License
31 stars 57 forks source link

Title: Feature Request: Custom Axios Hook for Streamlined HTTP Requests #218

Closed dev-george-nikolaidis closed 7 months ago

dev-george-nikolaidis commented 8 months ago

Hello

Feature Description: I propose the creation of a custom React hook that utilizes Axios for managing HTTP requests. This hook would aim to standardize the way we make requests and handle different loading states across our application.

Benefits:

Suggested Implementation: The hook could expose functions for various HTTP methods (GET, POST, etc.) and return states indicating loading, success, and error conditions. Additionally, it could offer customization options for request headers, parameters, and other Axios configurations.

Conclusion: Creating a common method for handling HTTP requests will streamline our development process and improve code maintainability. I look forward to discussing this further .

Best, Dev Geo

gbowne1 commented 8 months ago

@dev-george-nikolaidis

I agree with this issue. I also don't know if we are using axios currently in a manner that it benefits the application

A new custom hook would be fine though.

dev-george-nikolaidis commented 8 months ago

@gbowne1 I can work on this.

gbowne1 commented 8 months ago

Ok @dev-george-nikolaidis