reactjs/react-modal

Add support for React & Node 18 (as easy as adding startTransition() on each setState)

開放

#1,019 建立於 2023年5月8日

 (19 則留言) (0 個反應) (0 位負責人)JavaScript (828 個分叉)batch import
easygood first issue

倉庫指標

星標
 (7,294 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Summary:

Current react modal doesn't work with latest version of React + Node v18

Steps to reproduce:

  1. 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))

貢獻者指南