Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
486 stars 313 forks source link

Fixed: API not loaded the first time #2424

Closed malincrist closed 7 months ago

malincrist commented 7 months ago

Problem

When navigating on a page that has API: Details widget, the first time the user selects an API (from the widget API: list for example), it is not loaded. This is happening due to the order of the operations in the initialization flow: if there is no API in the URL initially we return without subscribing to onRouteChange(). Hence, even if the route changes, the API: Details widget doesn't react.

Solution

Subscribe to onRouteChange() even if there is no API in the URL.

Closes #2421

github-actions[bot] commented 7 months ago

Accessibility Insights Accessibility Insights Action: All applicable checks passed

MarvinVaillant commented 7 months ago

Thanks a lot for the fix :)

MarvinVaillant commented 7 months ago

When can we expect the changes to be rolled out?