-
Notifications
You must be signed in to change notification settings - Fork 434
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
Add key prop to NclistItem to re-render conversation with the appropr… #10589
Add key prop to NclistItem to re-render conversation with the appropr… #10589
Conversation
Was lucky to capture the screencast (at 00:06): Screencast.from.26.09.2023.11.30.26.webmHappens mostly around the active conversation component, active state is handled via Also wanted to note, that we have duplicated hidden conversation items in the list. To check:
Not happening for the Demo component:
Not sure, that a force-rerendering with |
Was it uploaded correctly? I see only this static image in the video... Anyway, is there a way to reproduce the bug? So we can debug it to find what causes the problem. Or at least a screenshot with a bug =D
As |
Pause on 0:05 glitching142016.mp4 |
Yep, I can see the problem now. Though, still cannot reproduce it... |
Having duplicated IDs is also weird. but it should not trigger an active state change. Vue Router adds an active state to all active links even if there are many. |
…iate class Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still cannot reproduce to debug, let's go with the key for now
e5fe899
to
4921677
Compare
Also fixes #10698 ? If so we should backport this to stable27? |
Yes. The problem with titles is caused by the direct DOM mutation here: spreed/src/components/LeftSidebar/ConversationsList/Conversation.vue Lines 339 to 341 in 6de7100
Vue is not aware of this change and doesn't update the title because it is not bind to the application state.
|
/backport to stable27 |
/backport to stable27 |
☑️ Resolves
Sometimes ( not sure what the trigger is yet), the active conversation class gets passed to all conversation items in the virtual scroller one by one successively.
Adding a key prop to NcListItem will force proper re-render.
🚧 Tasks