dillon1000/react

Commit

[react-devtools-cdt-mcp] Make registration idempotent (#36971)

Adds support for the scenario, when the package is imported multiple
times for the same target.

This will return the same (referentially) facade object with tools, and
will only clean up if all invocations were cleaned up.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-cdt-mcp/src/DevToolsCdtMcp.js ModifiedM packages/react-devtools-cdt-mcp/src/__tests__/DevToolsCdtMcp-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…