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

Function getScriptKey

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:5329–5332  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

5327}
5328
5329function getScriptKey(src: string): string {
5330 const limitedEscapedSrc = escapeSelectorAttributeValueInsideDoubleQuotes(src);
5331 return `[src="${limitedEscapedSrc}"]`;
5332}
5333
5334function getScriptSelectorFromKey(key: string): string {
5335 return 'script[async]' + key;

Callers 6

preloadFunction · 0.85
preloadModuleFunction · 0.85
preinitScriptFunction · 0.85
preinitModuleScriptFunction · 0.85
getResourceFunction · 0.85
acquireResourceFunction · 0.85

Tested by

no test coverage detected