joshwnj / joshwnj/react-visibility-sensor

Containment within the same React component? (not yet mounted so undefined)

Open
#95 2 comments 0 reactions 0 assignees View on GitHub
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


```

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.