Skip to content

The API playgrounds rendered with the RedoclyAPIBlock should show a loading spinner #1638

@raducotescu

Description

@raducotescu

🙋 Feature Request

API playgrounds rendered with the RedoclyAPIBlock usually load on pages with layout: none, which means that for a short amount of time the page is empty, showing only the top navigation and the footer. When the request to retrieve an OpenAPI definition takes too long it might give the users the impression that the API playground doesn't work at all.

🤔 Expected Behavior

The Redocly API docs library displays a loading spinner by default, but this has been disabled by hardcoding hideLoading: true in the RedoclyAPIBlock. This should be reverted, i.e. have hideLoading set to false by default and allow overriding it on a case by case basis.

😯 Current Behavior

Until the RedoclyAPIBlock renders users see an empty white page.

🔦 Context

See how https://developer.adobe.com/experience-cloud/experience-manager-apis/api/stable/sites/ renders, it's currently a bad first experience until the playground loads.

🧢 Your Company/Team

Adobe/AEM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions