Component Flashes on Screen
See original GitHub issueI’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:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >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
We have the same flicker/flashing issue as we are attempting to use this package with Next.js
This is definitely default desktop fallback for SSR. I’ll try to wrap something that makes the default configurable (desktop/mobile/nothing).