You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/05/05 20:08:12 UTC

[GitHub] [superset] prosdev0107 commented on a diff in pull request #19960: fix(dashboard): make to refresh all tab content charts

prosdev0107 commented on code in PR #19960:
URL: https://github.com/apache/superset/pull/19960#discussion_r866275411


##########
superset-frontend/src/dashboard/components/gridComponents/Chart.jsx:
##########
@@ -154,6 +157,10 @@ export default class Chart extends React.Component {
       return true;
     }
 
+    if (!isEqual(nextProps.chart, this.props.chart)) {

Review Comment:
   @diegomedina248 
   I think that `isEqual` works similar to `areObjectsEqual` and `areObjectsEqual` maybe more strict in this case.
   
   And then, when click `refresh dashboard` after change the dataset, all chart components should update whether if it is now visible or not. Thus, I define the filtering by chart props outside of `isComponentVisible` props filtering and so `chart` prop doesn't need to reach the `areObjectEquals` in `SHOULD_UPDATE_ON_PROP_CHANGES `.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org