Prevent nodes out of viewport triggering render (#296)

* Prevent nodes out of viewport triggering render

* Update frontend/src/common/SortedCollection.ts

Co-authored-by: David <dvdplm@gmail.com>

* Tweak the comment on `setFocus`, move it closer to `ref` and `hasChangedSince`

* Switch `SortedCollection.ref()` to a getter

Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
Maciej Hirsz
2020-11-02 19:33:51 +01:00
committed by GitHub
parent 98cd3cfa12
commit 54039faa3b
3 changed files with 53 additions and 15 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ export class Connection {
public handleMessages = (messages: FeedMessage.Message[]) => {
const { nodes, chains, sortBy, selectedColumns } = this.state;
const ref = nodes.ref();
const { ref } = nodes;
const updateState: UpdateBound = (state) => {
this.state = this.update(state);