MCPcopy Create free account
hub / github.com/EsperoTech/yaade / setIsLoading

Function setIsLoading

client/src/state/currentRequest.tsx:128–138  ·  view source on GitHub ↗
(
  state: CurrentRestRequest | CurrentWebsocketRequest | undefined,
  isLoading: boolean,
)

Source from the content-addressed store, hash-verified

126}
127
128function setIsLoading(
129 state: CurrentRestRequest | CurrentWebsocketRequest | undefined,
130 isLoading: boolean,
131) {
132 if (!state) return state;
133 if (state.type !== 'REST') return state;
134 return {
135 ...state,
136 isLoading,
137 };
138}
139
140function setIsChanged(
141 state: CurrentRestRequest | CurrentWebsocketRequest | undefined,

Callers 1

currentRequestReducerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected