MCPcopy Index your code
hub / github.com/react/react / overrideProps

Function overrideProps

packages/react-devtools-shared/src/__tests__/editing-test.js:115–125  ·  view source on GitHub ↗
(id, path, value)

Source from the content-addressed store, hash-verified

113 await mountTestApp();
114
115 function overrideProps(id, path, value) {
116 const rendererID = utils.getRendererID();
117 bridge.send('overrideValueAtPath', {
118 id,
119 path,
120 rendererID,
121 type: 'props',
122 value,
123 });
124 flushPendingUpdates();
125 }
126
127 overrideProps(classID, ['shallow'], 'updated');
128 expect(committedClassProps).toStrictEqual({

Callers 2

mountTestAppFunction · 0.70
overrideValueAtPathFunction · 0.50

Calls 1

flushPendingUpdatesFunction · 0.70

Tested by

no test coverage detected