()
| 22 | this.callback = callback; |
| 23 | } |
| 24 | observe() { |
| 25 | // Immediately fire with a fake entry so react-window gets dimensions |
| 26 | this.callback( |
| 27 | [ |
| 28 | { |
| 29 | contentRect: { width: 300, height: 600 } as DOMRectReadOnly, |
| 30 | target: document.createElement('div'), |
| 31 | borderBoxSize: [], |
| 32 | contentBoxSize: [], |
| 33 | devicePixelContentBoxSize: [], |
| 34 | }, |
| 35 | ], |
| 36 | this, |
| 37 | ); |
| 38 | } |
| 39 | unobserve() {} |
| 40 | disconnect() {} |
| 41 | }; |
no outgoing calls
no test coverage detected