How to use the react hook “useMemo” with asynchronous functions?

后端 未结 0 1095
栀梦
栀梦 2020-12-13 19:16

How can I await, to resolve/reject, the promise returned by a function wrapped in the react hook "useMemo"?

Currently, my code looks like this:



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