TypeScript: having trouble typing useReducer with generics

前端 未结 0 635
死守一世寂寞
死守一世寂寞 2020-12-13 09:03

I am writing a custom hook called useRequest where it manages data fetching. The user would need to pass the type for the data that gets resolved in the promise

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