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

Function renamePath

packages/react-devtools-shared/src/__tests__/editing-test.js:217–227  ·  view source on GitHub ↗
(id, oldPath, newPath)

Source from the content-addressed store, hash-verified

215 await mountTestApp();
216
217 function renamePath(id, oldPath, newPath) {
218 const rendererID = utils.getRendererID();
219 bridge.send('renamePath', {
220 id,
221 oldPath,
222 newPath,
223 rendererID,
224 type: 'props',
225 });
226 flushPendingUpdates();
227 }
228
229 renamePath(classID, ['shallow'], ['after']);
230 expect(committedClassProps).toStrictEqual({

Callers 2

mountTestAppFunction · 0.70
editing-test.jsFile · 0.70

Calls 1

flushPendingUpdatesFunction · 0.70

Tested by

no test coverage detected