Skip to content

Expanding a really large Event List Summary causes it to spontaneously collapse again #9192

@ara4n

Description

@ara4n

Reproduction steps

  1. have a room that has experienced LOT of membership events (in this case, 700)
  2. expand the summary (MELS), possibly scroll up, watch it get replaced and thus collapse again

Notes:

  • presumably expanding it triggers backpagination or something which causes a rerender which then renders a collapsed MELS
  • in theory not a horribly hard thing to fix, just needs a cache in the TimelinePanel to track which events are shown in a MELS and use that cache when building MELSes so that when you back paginate you don't change its key causing React to throw away the existing state
  • to put more words on the cause, we have to key every tile in the timeline with a unique string, for MELS we use the event ID of the first event shown, the issue with that is, when backpaginating, that first event may change (an older event may be found) so then the key changes and React throws the whole subtree away

Metadata

Metadata

Assignees

Labels

A-TimelineO-UncommonMost users are unlikely to come across this or unexpected workflowS-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-DefectZ-t3chguy

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions