MCPcopy Create free account
hub / github.com/Lobos/react-ui / addQueryStringValueToPath

Function addQueryStringValueToPath

docs/lib/ReactRouter.js:2368–2370  ·  view source on GitHub ↗
(path, key, value)

Source from the content-addressed store, hash-verified

2366 }
2367
2368 function addQueryStringValueToPath(path, key, value) {
2369 return path + (path.indexOf('?') === -1 ? '?' : '&') + (key + '=' + value);
2370 }
2371
2372 function stripQueryStringValueFromPath(path, key) {
2373 return path.replace(new RegExp('[?&]?' + key + '=[a-zA-Z0-9]+'), '');

Callers 2

getCurrentLocationFunction · 0.85
finishTransitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…