Magic Modal Release 7.1.0
show() now hands back an update next to promise and modalID, for pushing new content into a modal that's already open (#158):
const { update } = magicModal.show(() => <UploadModal progress={0} />);
update(() => <UploadModal progress={42} />);The modal stays where it is and the promise from show keeps waiting. The content itself is a new component on every call, so it remounts. Keep anything that has to survive an update out of its useState, in a store or in context.