MCPcopy Create free account
hub / github.com/flyfloor/react-component / removeNotice

Function removeNotice

component/NoticeCenter.js:30–36  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

28 },
29
30 removeNotice(key){
31 this.setState((state) => {
32 return {
33 notices: state.notices.filter(item => item.key !== key)
34 }
35 })
36 },
37
38 render() {
39 const {notices} = this.state

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…