mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-23 08:28:03 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user