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