joshwnj / joshwnj/react-visibility-sensor
Containment within the same React component? (not yet mounted so undefined)
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 192
- PR merge metrics
- No merged PRs in 30d
Description
Basically this:
```html
{ this._elem = elem; }}>
something
something
```
At the time the `VisibilitySensor` component is computed `this._elem` is still `undefined` (since the main/parent component is not yet mounted).
How to deal with this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.