nolanlawson / pinafore

Alternative web client for Mastodon (UNMAINTAINED)
https://pinafore.social
GNU Affero General Public License v3.0
1.02k stars 173 forks source link

TypeError: variable is null in PseudoVirtualList (shows loading spinner forever) #92

Closed nolanlawson closed 5 years ago

nolanlawson commented 6 years ago

This is bad because it can stop the whole PseudoVirtualList from rendering. Seems to happen at this line:

    {{#each wrappedItems as wrappedItem, i @item}}

Not sure what it is that's null here.

nolanlawson commented 6 years ago

Seen in Firefox on Mac.

nolanlawson commented 6 years ago

hopefully fixed by https://github.com/nolanlawson/pinafore/pull/93

nolanlawson commented 6 years ago

This still happens in 0.2.0.

nolanlawson commented 6 years ago

not sure if that fixes it, but can reopen if it shows up again

nolanlawson commented 6 years ago

This is still happening unfortunately. Tracked it down a bit; it's in Timeline.11.<hash>.js at this code:

h&&(h.next=d),d.last=h,h=d

In the above, d is null. This looks like Svelte's iteration logic, but I'm not sure.

nolanlawson commented 6 years ago

Possibly related: #160 #33

nolanlawson commented 5 years ago

I can't remember the last time I've seen this. Closing