-
Notifications
You must be signed in to change notification settings - Fork 6
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
Nicklist re-renders on unrelated user changes #11
Comments
More digging and I don't think it's actually the nicklist re-rendering everything. I have |
Interestingly the users it renders are the next 4 users off-screen further down the list. This is while the app is just sat there, no scrolling happening or anything. Not really sure why it would be doing this. |
I'm not sure if this is something were doing or a bug in ns-vue but this could posisbly look like a leak of some kind? I created a quick helper function that lists all vue instances that depends on an instance (below). I took one of the nicks that kept getting re-rendered in the nicklist ( Or perhaps I'm missing something on how this is expected to run? function getDeps(o) {
let deps = [];
o.__ob__.dep.subs.forEach(sub => {
let node = sub.vm.$vnode;
deps.push(node ? node.tag : sub.expression);
});
return deps;
} |
Could these users be being rendered in the message list? There are The Digging |
@tralves right, the references to the same component (-2- as you say) are the watchers in the single component - the computed values and the template itself. So in this example posted it's just this single instance floating around somewhere. It's definitely not in the statebrowser, nicklist or or message list either as it's parent is null and I had visually checked. |
When this re-render happens it freezes up the UI for a moment which gets ugly. This happens with the latest master with the
user.getColour()
call in placeThe text was updated successfully, but these errors were encountered: