Commit
Integrate Axios and TanStack Query for enhanced data fetching and state management
Commit details
Commit notes
- Added Axios as the HTTP client for API interactions, replacing the native fetch implementation. - Integrated TanStack Query for data fetching and caching, improving performance and user experience. - Created custom hooks for various API endpoints, including market packs and user authentication. - Implemented loaders for React Router to pre-fetch data, optimizing initial render times. - Updated routes and components to utilize the new data fetching strategy, ensuring better state management and error handling. - Removed outdated type definitions related to React Router's future types, streamlining the codebase.
- Files changed
- 30
- Lines added
- +1,801
- Lines removed
- −718