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.

Initial state wrong

See original GitHub issue

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

github_iconTop GitHub Comments

3reactions
theniksocommented, Sep 28, 2016

Fantastic 🎉 version 2.1.0 is now on npm

0reactions
alejandroiglesiascommented, Feb 21, 2018

@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 the inView expression until I scroll. We have to keep 2.x on our project for now.

Read more comments on GitHub >

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

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