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.

Component Flashes on Screen

See original GitHub issue

I’ve tried out your library for a react project of mine and it seems to work with the breakpoints, however, regardless of the width, the components will always flash on the screen then disappear. For example:

        <Breakpoint xlarge up>
          <SearchBar />
        </Breakpoint>

For the above code, I want the search bar to render only for screens larger than xlarge. When the screen size is small (mobile), the SearchBar flashes on the screen then disappears. Which tells me that, while the library is adhering to the screen sizes, it is still rendering the component and then unmounting it.

Is there a fix for this?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
thederncommented, Jun 24, 2019

We have the same flicker/flashing issue as we are attempting to use this package with Next.js

2reactions
flexdineshcommented, Jun 24, 2019

This is definitely default desktop fallback for SSR. I’ll try to wrap something that makes the default configurable (desktop/mobile/nothing).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue Component Flickering on Page Load - Laracasts
I'm using vue components within my laravel project and seem to be having issues when navigating from page to page. The components on...
Read more >
Avoid Flashes of Content in React with useLayoutEffect
Like useEffect , useLayoutEffect takes two arguments: a function and an optional dependency array. useLayoutEffect(() => { // Runs every time the component...
Read more >
Rendering component in React shows flicker - Stack Overflow
The reason this is happening is that you are defining your component Display from within another component (in this case App ).
Read more >
Screen flash/blink between screen · Issue #9256 - GitHub
It's an example, in a real application it's weird that sometimes on tab change the screen is flashing for no reason.
Read more >
Element TV Flickering Screen - Fix it Now - YouTube
Element TV Flickering ScreenQuick and Simple Solution that works 99% of the time.
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