question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

isVisible prop always returns false

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
natashachecommented, Jan 19, 2018

@fkhadra The intended use case is when i scroll. It doesn’t seem to detect visibility change when scrolling.

0reactions
fkhadracommented, Feb 10, 2018

Thank you @zachgibson for the feedback

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found