react-chatbotify / react-chatbotify/gallery-website
[Suggestion] Use Axios with React Query for API Calls, Error Handling, and Caching
Open
@Abishek-Newar is already working on this.
Since Dec 1, 2025.
enhancement
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Currently, API calls in the project use the native fetch API without centralized error handling or caching mechanisms. This can lead to inconsistent request management, lack of proper retries, and difficulties in handling errors across the application.
Proposal:
- Replace direct fetch calls with Axios to take advantage of its built-in error handling, interceptors, and request cancellation.
- Integrate React Query to manage API state efficiently, enabling automatic caching, background refetching, and better request deduplication.
- Standardize error handling across the app by using Axios interceptors.
- Implement global request and response transformation for better API consumption.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.