From 01cca9e8a6b19104563c3ea62d3ad3068c0e83d7 Mon Sep 17 00:00:00 2001
From: Alexander Rose <alex.rose@rcsb.org>
Date: Fri, 9 Aug 2019 11:08:53 -0700
Subject: [PATCH] use .componentDidUpdate in SliderBase

---
 src/mol-plugin/ui/controls/slider.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mol-plugin/ui/controls/slider.tsx b/src/mol-plugin/ui/controls/slider.tsx
index 34e00c3e3..5ee0ae1cf 100644
--- a/src/mol-plugin/ui/controls/slider.tsx
+++ b/src/mol-plugin/ui/controls/slider.tsx
@@ -320,7 +320,7 @@ export class SliderBase extends React.Component<SliderBaseProps, SliderBaseState
     private startValue = 0;
     private _getPointsCache: any = void 0;
 
-    componentWillReceiveProps(nextProps: SliderBaseProps) {
+    componentDidUpdate(nextProps: SliderBaseProps) {
         if (!('value' in nextProps || 'min' in nextProps || 'max' in nextProps)) return;
 
         const { bounds } = this.state;
-- 
GitLab