Cancelling an async request inside of a custom hook

后端 未结 0 1308
栀梦
栀梦 2021-01-31 09:04

In our codebase, I found a custom hook that performs an async request as follows:

export const useGetPlayersByTeamId = () => {
  const [data, setData] = useSta         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题