(
state = {
notices: [],
collapsed: true,
},
{ payload },
)
| 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 }) { |
nothing calls this directly
no outgoing calls
no test coverage detected