How to wait with a function until data is grabbed out of a react context?

前端 未结 0 1966
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 22:07

I want to grab data from my react context and then use this data for a function. Unfortunately, the function gets invoked too early, so the data is not ready.

Here is

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