Open Issues Need Help
View All on GitHub How To Fetch Data With Multiple Endpoints? about 1 month ago
AI Summary: The task involves fetching data from multiple endpoints (members and divisions) using Axios in a React project. The solution requires creating API endpoints in `api.ts`, a custom hook `useMembersWithDivisions.ts` to handle the parallel data fetching and merging using `lodash`'s `keyBy` function, and updating the component to use the custom hook. The issue suggests using `Promise.all` for parallel requests and mapping the results to combine member data with division names. React Query is mentioned as an alternative for improved performance but is not required for this task.
Complexity:
3/5
documentation help wanted