-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'offsetWidth' of null #2
Comments
I have the same problem. In my case the error occurs because I add/remove the 'InfiniteLoading' component via {#if items.indexOf(item) == 0} only at the beginning of a Virtual List. I think the source code should be optimized that way:
|
This also suppresses the error when the component is destroyed with a pending fetch.
|
Hello there! I think this might be an issue with timing 🤔 Anyways, I've made @thebestgin suggested changes now. Hope that helps... |
In my case |
I had a similar problem,my solution was to display the InfiniteLoading component on demand,meaning: |
Hello,
I'm getting this error, even that it is working nice, but idk how to fix it. I'm running sapper/firebase
The text was updated successfully, but these errors were encountered: