Skip to content

Magic Modal Release 7.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Jul 23:14
24a939f

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.

7.1.0 (2026-07-25)

🔨 Bug Fixes 🔨

  • ci: stop turbo from swallowing the docs task (#215) (18966e0)

🌠 New Features 🌠

  • modal: add update() to swap a modal's content in place (#217) (24a939f)