-
-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor frontend API client and modernize data fetching #232
Copy link
Copy link
Open
Labels
Description
Problem
The frontend API client logic is currently repeated across multiple modules in the codebase. Common functions, such as attaching the CSRF header, are duplicated, leading to code redundancy and higher maintenance effort.
Proposal
-
Refactor API Client:
- Extract shared logic (e.g., CSRF header management) into a single, reusable API client module.
- Replace repeated code across modules with calls to the centralized API client.
-
Investigate Modern Data Fetching:
- Evaluate adopting a more modern approach for data fetching on the frontend. Specifically, consider implementing @tanstack/react-query to manage server state, caching, and data synchronization efficiently.
- Move away from manual
fetchoperations withinuseEffecthooks, and migrate major affected areas to use the chosen modern solution.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog