MCPcopy
hub / github.com/facebook/react / handleProductionChange

Method handleProductionChange

fixtures/dom/src/components/Header.js:24–31  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

22 window.location.search = stringify(query);
23 }
24 handleProductionChange(event) {
25 const query = parse(window.location.search);
26 query.production = event.target.checked;
27 if (!query.production) {
28 delete query.production;
29 }
30 window.location.search = stringify(query);
31 }
32 handleFixtureChange(event) {
33 window.location.pathname = event.target.value;
34 }

Callers

nothing calls this directly

Calls 2

stringifyFunction · 0.85
parseFunction · 0.50

Tested by

no test coverage detected