Open
Description
Summary:
Passing closeTimeoutMS
to an open Modal makes it unrecoverable if it's part of a render that suspends.
Steps to reproduce:
- Create a component that contains an open modal, and something that can suspend
- Suspend it after initial render
- Modal can't recover
Expected behavior:
Modal should be open.
Link to example of issue:
https://codesandbox.io/s/closetimeoutms-and-suspense-nfmelh?file=/src/App.tsx
Additional notes:
If the closeTimeoutMS
prop is removed from the codesandbox link, everything works as expected.
Metadata
Metadata
Assignees
Labels
No labels