isVisible prop always returns false
See original GitHub issueI’m trying to integrate react on screen into a page that looks like the following
<div>
<Header
soundcastID={this.props.soundcastID}
/>
<TrackVisibility>
<Body
userInfo={this.props.userInfo}
history={this.props.history}
/>
</TrackVisibility>
<Footer/>
</div>
this.props.isVisible
always logs false
in Body
, even if the component is clearly showing on screen. Any idea why?
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
[SOLVED] QLabel->isVisible always returns false - Qt Forum
So MyWidget is not yet visible unless w.show() is called. Hence when the parent becomes visible then the property of the child setVisible(true) ......
Read more >How do I pass the "isVisibility" value as a prop to another ...
I would recommend moving isVisible into HomePage which would allow you to pass it to both components. You can then update isVisible by ......
Read more >Render.IsVisible returning false for one frame - Unity Answers
IsVisible returns false for just one frame then returns true for the remaining frames. I have this object coded to move down the...
Read more >BUG: Checkbox Visible property always false
Hi MelindaK, This seemingly strange behavior is because the Gallery is meant to display lists of items.
Read more >Intent to Ship: Element.isVisible method - Google Groups
Element.isVisible() returns true if the element is visible, and false if it is not. It checks a variety of factors that would make...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fkhadra The intended use case is when i scroll. It doesn’t seem to detect visibility change when scrolling.
Thank you @zachgibson for the feedback