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

Function onReloadAndProfile

packages/react-devtools-shared/src/utils.js:1287–1300  ·  view source on GitHub ↗
(
  recordChangeDescriptions: boolean,
  recordTimeline: boolean,
)

Source from the content-addressed store, hash-verified

1285}
1286
1287export function onReloadAndProfile(
1288 recordChangeDescriptions: boolean,
1289 recordTimeline: boolean,
1290): void {
1291 sessionStorageSetItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY, 'true');
1292 sessionStorageSetItem(
1293 SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY,
1294 recordChangeDescriptions ? 'true' : 'false',
1295 );
1296 sessionStorageSetItem(
1297 SESSION_STORAGE_RECORD_TIMELINE_KEY,
1298 recordTimeline ? 'true' : 'false',
1299 );
1300}
1301
1302export function onReloadAndProfileFlagsReset(): void {
1303 sessionStorageRemoveItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY);

Callers

nothing calls this directly

Calls 1

sessionStorageSetItemFunction · 0.90

Tested by

no test coverage detected