react/packages/react-devtools-shell
Brian Vaughn 3b3daf5573
Advocate for StrictMode usage within Components tree (#22886)
Adds the concept of subtree modes to DevTools to bridge protocol as follows:
1. Add-root messages get two new attributes: one specifying whether the root is running in strict mode and another specifying whether the root (really the root's renderer) supports the concept of strict mode.
2. A new backend message type (TREE_OPERATION_SET_SUBTREE_MODE). This type specifies a subtree root (id) and a mode (bitmask). For now, the only mode this message deals with is strict mode.

The DevTools frontend has been updated as well to highlight non-StrictMode compliant components.

The changes to the bridge protocol require incrementing the bridge protocol version number, which will also require updating the version of react-devtools-core backend that is shipped with React Native.
2021-12-10 11:05:18 -05:00
..
src Advocate for StrictMode usage within Components tree (#22886) 2021-12-10 11:05:18 -05:00
README.md Updated scripts and config to replace "master" with "main" branch (#21768) 2021-06-29 14:26:24 -04:00
index.html Fixed box-sizing problem in test shell 2020-01-06 10:23:55 -08:00
now.json Moved shell fixture into packages/react-devtools-shell 2019-08-13 18:11:59 -07:00
package.json Upgrade all @babel/* packages to fix DevTools builds on newer Node versions (#19647) 2020-08-20 11:47:16 -04:00
webpack.config.js Add test selectors to experimental build (#22760) 2021-11-16 16:27:10 -05:00

README.md

Harness for testing local changes to the react-devtools-inline and react-devtools-shared packages.

Development

This target should be run in parallel with the react-devtools-inline package. The first step then is to run that target following the instructions in the react-devtools-inline README.

The test harness can then be run as follows:

cd packages/react-devtools-shell

yarn start