MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / getDerivedStateFromProps

Function getDerivedStateFromProps

src/TooltipPopoverWrapper.js:114–119  ·  view source on GitHub ↗
(props, state)

Source from the content-addressed store, hash-verified

112 }
113
114 static getDerivedStateFromProps(props, state) {
115 if (props.isOpen && !state.isOpen) {
116 return { isOpen: props.isOpen };
117 }
118 return null;
119 }
120
121 handleDocumentClick(e) {
122 const triggers = this.props.trigger.split(' ');

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…