Initial state wrong
See original GitHub issueI’m working on a project with two scrolling views. I’ve set in-view-container
on both containers (that have overflow: scroll
set).
One of them works properly, the other one shows all contained items as inview initially. Afterwards, when scrolling inside the container, it works properly, but the initial load is wrong.
First I thought that the combination with angular-scroll-glue could be the problem, but I disabled that and it still shows all elements as initially visible.
Any idea how to debug this issue?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
react toggle returns wrong state on initial state change
The initial state is false ; when I click I want it to turn to true so that I can set another condition,...
Read more >Why do I receive an error loading initial state when building a ...
In the Simulation/Configuration Parameters menu, check "Initial state". Start simulation and verify that your model starts in steady-state.
Read more >Bug: useState with class as initial state throws an error · Issue ...
Using a JavaScript class as initial state in useState throws an error. This is because mountState check if the initial state is a...
Read more >5 Most Common useState Mistakes React Developers Often ...
The problem is that useState allows you to define its initial state using anything you want. However, what no one tells you outright...
Read more >Writing Reducers with Immer | Redux Toolkit - JS.ORG
One of the primary rules of Redux is that our reducers are never allowed to mutate the original / current state values!
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
Fantastic 🎉 version 2.1.0 is now on npm
@thenikso this is broken again in version
3.0.0
. I have a container with list items, the items that are initially visible are not triggering theinView
expression until I scroll. We have to keep2.x
on our project for now.