From 0e6f14bb7c9bdea3b60e2368a97b065fa5593440 Mon Sep 17 00:00:00 2001 From: Bettenbuk Zoltan Date: Wed, 10 Jul 2019 11:46:22 +0200 Subject: [PATCH] fix: avoid false triggering CDU in SlidingView --- .../features/base/react/components/native/SlidingView.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/react/features/base/react/components/native/SlidingView.js b/react/features/base/react/components/native/SlidingView.js index 6a2305b83..e8f5ebd89 100644 --- a/react/features/base/react/components/native/SlidingView.js +++ b/react/features/base/react/components/native/SlidingView.js @@ -128,8 +128,12 @@ export default class SlidingView extends PureComponent { * * @inheritdoc */ - componentDidUpdate() { - this._setShow(this.props.show); + componentDidUpdate(prevProps: Props) { + const { show } = this.props; + + if (prevProps.show !== show) { + this._setShow(show); + } } /**