Make sure you're not conditionally rendering your `<Modal />`, but instead utilizing the `show` boolean attribute in the `<Modal />` component:
Wrong:
...
{modalVisible && (
<Modal ...>
</Modal>
)}
...
Right:
...
<Modal ... show={modalVisible}>
</Modal>
...