MCPcopy
hub / github.com/thebuilder/react-intersection-observer / componentDidMount

Method componentDidMount

src/InView.tsx:82–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 componentDidMount() {
83 this.unobserve();
84 this.observeNode();
85 }
86
87 componentDidUpdate(prevProps: IntersectionObserverProps) {
88 // If a IntersectionObserver option changed, reinit the observer

Callers

nothing calls this directly

Calls 2

unobserveMethod · 0.95
observeNodeMethod · 0.95

Tested by

no test coverage detected