What is the best way to make an api call before rendering a widget so that it can be populated with the results.
Thanks
What is the best way to make an api call before rendering a widget so that it can be populated with the results.
Thanks
If you’re using the Router you can follow:
Regardless of how / where you make the API call (in the widget or via a parent component) - You’ll have to await the response and then use Patch to update your widget with the data. So let your component render and then patch in the new info.