reactjs/react-modal
Vedi su GitHubAdd support for React & Node 18 (as easy as adding startTransition() on each setState)
Open
#1019 aperta il 8 mag 2023
easygood first issue
Metriche repository
- Star
- (7294 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Summary:
Current react modal doesn't work with latest version of React + Node v18
Steps to reproduce:
- Use react-modal with latest React's and Node v18
Expected behavior:
Should work normally
Example of issue:
Breaks with the following error message:
Solution:
Simply add startTransition() wrapping each of the calls for setting the state.
startTransition(() => setState("something))