core icon indicating copy to clipboard operation
core copied to clipboard

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

Open LordzShadow opened this issue 3 months ago • 2 comments

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

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

LordzShadow avatar Sep 01 '26 10:09 LordzShadow

Stale issue message

github-actions[bot] avatar Oct 31 '26 19:10 github-actions[bot]

k

LordzShadow avatar Nov 11 '26 14:11 LordzShadow