Skip to content

DM-6022 Lazy load related chart data on table data update #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2016

Conversation

tgoldina
Copy link
Contributor

@tgoldina tgoldina commented Jul 6, 2016

  • Introduced CHART_MOUNTED/CHART_UNMOUNTED actions, deleted SETUP_TBL_TRACKING.
  • Reworked the logic for chart related controllers. Chart data are updated only if a chart is mounted, no updates on unmounted charts.
  • Now checking if connected table or server parameters have changed before placing server request for data
  • Fixed setState calls on unmounted component in ChartContainer.
  • Fixed delete button being shown in expanded mode.

this.setState({chartType: getChartType(nextProps)});
const {tblId, chartId, chartType} = nextProps;
if (!tblId || !chartId) { return; }
if (chartId != this.props.chartId || chartType != this.props.chartType || !this.props.tblId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just picky, !== instead of '!='

@cwang2016
Copy link
Contributor

review is done. looks good!

@tgoldina tgoldina merged commit 3d9555a into dev Jul 7, 2016
@tgoldina tgoldina deleted the dm-6022_lazychart branch July 12, 2016 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants