Skip to content

[React Bridge] Allow host to manage loading and fallback states. #5015

Description

@LordzShadow

Clear and concise description of the problem

As a developer using MF and react-bridge, I want to be able to externally manage the loading and fallback states, so that I could use the same loading or fallback state until the remote component internals have finished loading.
We have a case, where we have to show a loading state inside the host, because the remote is still loading (shadow dom) styles. We could disable the react-bridge loading state and use our own, but this results in an issue, where if the remote fails to load and the fallback triggers, the loading state is still true, so both the fallback and loading state are rendered.

Suggested solution

Make the boundary and fallback on react bridge optional, so the host can handle the boundary itself.

Alternative

Somehow notify the host, that the error boundary triggered while also showing the defined fallback.

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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