MCPcopy Create free account
hub / github.com/LeetCode-OpenSource/ayanami / logStateAction

Function logStateAction

src/redux-devtools-extension.ts:45–61  ·  view source on GitHub ↗
(
  namespace: string,
  infos: { actionName: string; params: string; state?: any },
)

Source from the content-addressed store, hash-verified

43}
44
45export function logStateAction(
46 namespace: string,
47 infos: { actionName: string; params: string; state?: any },
48): void {
49 if (isEnableLog) {
50 const action = {
51 type: `${namespace}/${infos.actionName}`,
52 params: filterParams(infos.params),
53 }
54
55 if (infos.state) {
56 STATE[namespace] = infos.state
57 }
58
59 getDevTools().send(action, STATE)
60 }
61}
62
63function filterParams(params: any): any {
64 if (params && typeof params === 'object') {

Callers 1

IkariClass · 0.90

Calls 2

filterParamsFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected