In our codebase, I found a custom hook that performs an async request as follows:
export const useGetPlayersByTeamId = () => { const [data, setData] = useSta