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

Function viewElementSourceFunction

packages/react-devtools-core/src/standalone.js:158–168  ·  view source on GitHub ↗
(
  _source: ReactFunctionLocation | ReactCallSite,
  symbolicatedSource: ReactFunctionLocation | ReactCallSite | null,
)

Source from the content-addressed store, hash-verified

156}
157
158function viewElementSourceFunction(
159 _source: ReactFunctionLocation | ReactCallSite,
160 symbolicatedSource: ReactFunctionLocation | ReactCallSite | null,
161): void {
162 if (symbolicatedSource == null) {
163 return;
164 }
165
166 const [, sourceURL, line] = symbolicatedSource;
167 launchEditor(sourceURL, line, projectRoots);
168}
169
170function onDisconnected() {
171 safeUnmount();

Callers 1

useOpenResourceFunction · 0.50

Calls 1

launchEditorFunction · 0.90

Tested by

no test coverage detected