MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / saveClearedNotices

Function saveClearedNotices

src/models/global.js:93–105  ·  view source on GitHub ↗
(
      state = {
        notices: [],
        collapsed: true,
      },
      { payload },
    )

Source from the content-addressed store, hash-verified

91 },
92
93 saveClearedNotices(
94 state = {
95 notices: [],
96 collapsed: true,
97 },
98 { payload },
99 ) {
100 return {
101 collapsed: false,
102 ...state,
103 notices: state.notices.filter(item => item.type !== payload),
104 };
105 },
106 },
107 subscriptions: {
108 setup({ history }) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected