dillon1000/react

Commit

[Fresh] Track mounted roots via DevTools Hook (#15928)

* Track mounted roots via DevTools Hook

* Add helper utilities to the runtime

These utilities will likely be needed by all module systems, so let's just put them here.

* Wrap more things in __DEV__

* Fix tests to also be DEV-only
Browse files
Changed paths5 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberHotReloading.js ModifiedM packages/react-reconciler/src/ReactFiberReconciler.js ModifiedM packages/react-refresh/src/ReactFreshRuntime.js ModifiedM packages/react-refresh/src/__tests__/ReactFresh-test.js ModifiedM packages/react-refresh/src/__tests__/ReactFreshIntegration-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…