dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/FastRefreshDevToolsIntegration-test.js ModifiedM packages/react-devtools-shared/src/hook.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…