Refactor all communication between components and the backend to utilize custom hooks using the TanStack Query library for managing server state and data fetching within these hooks.
Ensure that all components function correctly with the new custom hooks and that data is being fetched properly.
Ensure that the application maintains its expected performance and responsiveness following the optimizations.