MCPcopy Create free account
hub / github.com/Lobos/react-ui / componentDidMount

Function componentDidMount

src/Modal.js:36–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 componentDidMount () {
37 PubSub.subscribe(ADD_MODAL, this.addModal.bind(this));
38
39 PubSub.subscribe(REMOVE_MODAL, this.removeModal.bind(this));
40
41 PubSub.subscribe(CLICKAWAY, () => {
42 let props = modals[modals.length - 1];
43 if (props.clickaway) {
44 PubSub.publish(REMOVE_MODAL);
45 }
46 });
47 }
48
49 addModal (topic, props) {
50 let isReplace = false;

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…