I have a workflow triggered by a submit button click (in this order):
- call an API workflow
- this API workflow computes some values and store them in database
- frontend displays those values by querying the database
- 25% of the time, the frontend does NOT display the values (I presume because the database is not populated yet, and frontend “moves” faster than the backend)
- i believe API workflow cannot return any values (correct me if I’m wrong), that’s why I’m querying the database directly
What should I do to let the frontend display the values 100% of the time? Thanks!