mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-23 22:36:24 +00:00
Smooth fade-out of node-loading message
This commit is contained in:
@@ -468,7 +468,12 @@ export function receiveNodeDetails(details) {
|
||||
|
||||
export function receiveNodesDelta(delta) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({ type: ActionTypes.SET_RECEIVED_NODES_DELTA });
|
||||
//
|
||||
// allow css-animation to run smoothly by scheduling it to run on the
|
||||
// next tick after any potentially expensive canvas re-draws have been
|
||||
// completed.
|
||||
//
|
||||
setTimeout(() => dispatch({ type: ActionTypes.SET_RECEIVED_NODES_DELTA }), 0);
|
||||
|
||||
if (delta.add || delta.update || delta.remove) {
|
||||
const state = getState();
|
||||
|
||||
Reference in New Issue
Block a user