Equivalent useMemo async function?

前端 未结 0 856
滥情空心
滥情空心 2021-01-21 07:23

I need to make a HEAVY (needs .then() syntax) API call only ONCE in my app. What I have works, using useState and useEffect, but when the context reloads, it makes the API call

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