reactjs/react-modal

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

オープン

#1,019 opened on 2023/05/08

 (19 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (828 件のフォーク)batch import
easygood first issue

Repository metrics

Stars
 (7,294 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド