Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

update succeed table in time #2103

Merged
merged 1 commit into from
Mar 2, 2020
Merged

update succeed table in time #2103

merged 1 commit into from
Mar 2, 2020

Conversation

Lijiaoa
Copy link
Contributor

@Lijiaoa Lijiaoa commented Feb 26, 2020

No description provided.

@@ -113,6 +113,11 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState>
}
];

componentWillReceiveProps(nextProps: SuccessTableProps): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not put this logic in render()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because ui got trialIds by props, got the table source by trialIds
when props changed, need to restore the state value in componentWillReceiveProps to trigger render. I think.

@chicm-ms chicm-ms merged commit a7b5f3b into microsoft:master Mar 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants