Make Api to populate widget

What is the best way to make an api call before rendering a widget so that it can be populated with the results.

Thanks :slight_smile:

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.