SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

DevTools: fork FastRefresh test for <18 versions of React (#31893)

We currently have a failing test for React DevTools against React 17.
This started failing in https://github.com/facebook/react/pull/30899,
where we changed logic for error tracking and started relying on
`onPostCommitFiberRoot` hook.

Looking at https://github.com/facebook/react/pull/21183,
`onPostCommitFiberRoot` was shipped in 18, which means that any console
errors / warnings emitted in passive effects won't be recorded by React
DevTools for React < 18.
R
Ruslan Lesiutin committed
62208bee5ad7e447d42459ace8c0edcb7c4f9197
Parent: 694d3e1
Committed by GitHub <noreply@github.com> on 1/2/2025, 2:07:21 PM