Creates a lazily loaded modal component that reports a failed load through onLoadError instead of throwing.
onLoadError
Loads a module whose default export is the modal component.
Modal hosts such as mui-modal-provider render outside any error boundary, so a lazy modal must not throw. Opening the modal again after a failure loads the module again.
mui-modal-provider
Creates a lazily loaded modal component that reports a failed load through
onLoadErrorinstead of throwing.