@@ -71,11 +71,22 @@ function (_React$Component) {
7171 }
7272 }
7373 } , {
74- key : "componentDidUpdate " ,
75- value : function componentDidUpdate ( prevProps ) {
74+ key : "shouldComponentUpdate " ,
75+ value : function shouldComponentUpdate ( nextProps , nextState ) {
7676 var _this$props2 = this . props ,
7777 query = _this$props2 . query ,
78- queries = _this$props2 . queries ;
78+ queries = _this$props2 . queries ,
79+ render = _this$props2 . render ,
80+ cubejsApi = _this$props2 . cubejsApi ,
81+ loadSql = _this$props2 . loadSql ;
82+ return ! ramda . equals ( nextProps . query , query ) || ! ramda . equals ( nextProps . queries , queries ) || ( nextProps . render == null || render == null ) && nextProps . render !== render || nextProps . cubejsApi !== cubejsApi || nextProps . loadSql !== loadSql || ! ramda . equals ( nextState , this . state ) ;
83+ }
84+ } , {
85+ key : "componentDidUpdate" ,
86+ value : function componentDidUpdate ( prevProps ) {
87+ var _this$props3 = this . props ,
88+ query = _this$props3 . query ,
89+ queries = _this$props3 . queries ;
7990
8091 if ( ! ramda . equals ( prevProps . query , query ) ) {
8192 this . load ( query ) ;
@@ -96,9 +107,9 @@ function (_React$Component) {
96107 error : null ,
97108 sqlQuery : null
98109 } ) ;
99- var _this$props3 = this . props ,
100- loadSql = _this$props3 . loadSql ,
101- cubejsApi = _this$props3 . cubejsApi ;
110+ var _this$props4 = this . props ,
111+ loadSql = _this$props4 . loadSql ,
112+ cubejsApi = _this$props4 . cubejsApi ;
102113
103114 if ( query && QueryRenderer . isQueryPresent ( query ) ) {
104115 if ( loadSql === 'only' ) {
0 commit comments