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