MCPcopy
hub / github.com/mitmproxy/mitmproxy / selectToggle

Function selectToggle

web/src/js/ducks/flows/index.ts:366–375  ·  view source on GitHub ↗
(flow: Flow)

Source from the content-addressed store, hash-verified

364
365/** Toggle selection for one particular flow. */
366export function selectToggle(flow: Flow) {
367 return (dispatch: AppDispatch, getState: () => RootState) => {
368 const { flows } = getState();
369 if (flows.selectedIds.has(flow.id)) {
370 dispatch(select(flows.selected.filter((f) => f !== flow)));
371 } else {
372 dispatch(select([...flows.selected, flow]));
373 }
374 };
375}
376
377/** Select a range of flows with shift + click. */
378export function selectRange(flow: Flow) {

Callers 1

FlowRow.tsxFile · 0.90

Calls 2

dispatchFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…