Layout header does not re-render
See original GitHub issueI’ve got a similar issue as I had with #89 but in the latest version.
I’ve got a full page login component. After you login I use router.navigate(['/']);
to navigate to a component for logged in users (contains the layout). This does not trigger the media query listeners from the looks of it.
The layout header has margin-left: 240px;
and does not update even if I resize the page.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Why is my header component rerendering when no new props ...
The reason why your Header component is being rendered again after running the changeTab function is because you're calling the setState ...
Read more >SectionList - React Native
A marker property for telling the list to re-render (since it implements PureComponent ). If any of your renderItem , Header, Footer, etc....
Read more >Usage | FlashList
Switch from FlatList to FlashList and render the list once. You should see a warning about missing estimatedItemSize and a suggestion. Set this ......
Read more >5 Ways to Avoid React Component Re-Renderings
So, it will not re-render the component if the user clicks the same item again ... Building a design system with components to...
Read more >Strict Mode - React
Like Fragment , StrictMode does not render any visible UI. ... strict mode checks will not be run against the Header and Footer...
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
@grizzm0 thx for finding this, @nikoTM thx for your help analysing this issue. the problem was that the MdlScreenSizeService did not provide the current screen size after a subscription. now it does - i hope:) will be available in a few minutes as 2.12.1.
@mseemann seems like is-small-screen is not being added for some reason.