Skip to content
Permalink
Browse files

perf: debounce updateNodeData

resolve #2225
  • Loading branch information...
korhaliv committed Jun 11, 2019
1 parent 042af40 commit ad60ac83ed729ca42681dd163613bd86e4f568e5
Showing with 5 additions and 0 deletions.
  1. +5 −0 renderer/reducers/network.js
@@ -27,6 +27,11 @@ export function updateNodeData(data) {
return {
type: UPDATE_NODE_DATA,
data,
// enable debounce for this action
debounce: {
wait: 2000,
maxWait: 5000,
},
}
}

0 comments on commit ad60ac8

Please sign in to comment.
You can’t perform that action at this time.