MCPcopy Index your code
hub / github.com/Lobos/react-ui / componentWillReceiveProps

Method componentWillReceiveProps

src/Modal.js:260–270  ·  view source on GitHub ↗
(newProps)

Source from the content-addressed store, hash-verified

258 }
259
260 componentWillReceiveProps (newProps) {
261 if (!newProps.isOpen && !this.props.isOpen) {
262 return;
263 }
264
265 if (newProps.isOpen) {
266 this.renderModal(newProps);
267 } else {
268 close();
269 }
270 }
271
272 renderModal (props) {
273 open({

Callers

nothing calls this directly

Calls 2

renderModalMethod · 0.95
closeFunction · 0.70

Tested by

no test coverage detected