I'm wrapping my app in the NiceModal.Provider, registering a modal like this: <ModalDef id="modal_id" component={Modal} />, then trying to open the modal I have registered using NiceModal.show("modal_id"), but nothing happens. I've reproduced this issue here:
I'm wrapping my app in the
NiceModal.Provider
, registering a modal like this:<ModalDef id="modal_id" component={Modal} />
, then trying to open the modal I have registered usingNiceModal.show("modal_id")
, but nothing happens. I've reproduced this issue here:https://codesandbox.io/s/nice-modal-example-015ov?file=/src/GlobalModalProvider.tsx:192-236
How come this is not working?