disableAutoDestroy: false and destroyOnClose : false are not honored (at least not always). https://github.com/Quernest/mui-modal-provider/blob/master/src/modal-provider.tsx#L165 The onExited should have an options (options.destroyOnClose || disableAutoDestroy) check before calling destroy?