MCPcopy Index your code
hub / github.com/facebook/react / getStyleXData

Function getStyleXData

packages/react-devtools-shared/src/backend/StyleX/utils.js:15–25  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

13const cachedStyleNameToValueMap: Map<string, string> = new Map();
14
15export function getStyleXData(data: any): StyleXPlugin {
16 const sources = new Set<string>();
17 const resolvedStyles = {};
18
19 crawlData(data, sources, resolvedStyles);
20
21 return {
22 sources: Array.from(sources).sort(),
23 resolvedStyles,
24 };
25}
26
27export function crawlData(
28 data: any,

Callers 2

inspectFiberInstanceRawFunction · 0.90
utils-test.jsFile · 0.85

Calls 1

crawlDataFunction · 0.85

Tested by

no test coverage detected