MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / onStoreUpdate

Method onStoreUpdate

web/src/js/backends/websocket.tsx:92–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 onStoreUpdate() {
93 const storeFilterState = this.store.getState().ui.filter;
94 if (storeFilterState === this.filterState) {
95 return;
96 }
97 for (const name of Object.values(FilterName)) {
98 if (this.filterState[name] !== storeFilterState[name]) {
99 this.sendMessage({
100 type: "flows/updateFilter",
101 payload: {
102 name,
103 expr: storeFilterState[name],
104 },
105 });
106 }
107 }
108 this.filterState = storeFilterState;
109 }
110
111 fetchData(resource: Resource) {
112 const queue: Array<Action> = [];

Callers

nothing calls this directly

Calls 2

sendMessageMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected