MCPcopy
hub / github.com/ctrlplusb/react-sizeme / resizeDetector

Function resizeDetector

src/resize-detector.js:7–15  ·  view source on GitHub ↗
(strategy = 'scroll')

Source from the content-addressed store, hash-verified

5// Lazily require to not cause bug
6// https://github.com/ctrlplusb/react-sizeme/issues/6
7function resizeDetector(strategy = 'scroll') {
8 if (!instances[strategy]) {
9 instances[strategy] = createResizeDetector({
10 strategy,
11 })
12 }
13
14 return instances[strategy]
15}
16
17export default resizeDetector

Callers 1

componentDidMountMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…