MCPcopy
hub / github.com/mitmproxy/mitmproxy / selectFlowOnceAvailable

Function selectFlowOnceAvailable

web/src/js/urlState.ts:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 store.dispatch(selectTab(tab));
31
32 const selectFlowOnceAvailable = () => {
33 const flow = store.getState().flows.byId.get(flowId);
34 if (flow !== undefined) {
35 unsubscribe();
36 store.dispatch(select([flow]));
37 }
38 };
39 const unsubscribe = store.subscribe(selectFlowOnceAvailable);
40 selectFlowOnceAvailable();
41 }

Callers 1

updateStoreFromUrlFunction · 0.85

Calls 2

dispatchMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…