MCPcopy Create free account
hub / github.com/emwalker/digraph / constructor

Method constructor

client/src/components/FlashMessages/index.tsx:20–28  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

18
19class FlashMessages extends Component<Props, State> {
20 constructor(props: Props) {
21 super(props)
22 this.state = {
23 messages: props.initialAlertMessages || [],
24 alerts: [],
25 }
26
27 window.flashMessages = this
28 }
29
30 get alerts() {
31 return this.state.messages.map((message) => (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected