- componentDidUpdate(prevProps: DataExplorerProps<T>) {
- const currentRefresh = this.props.currentRefresh || "";
- const currentRoute = this.props.currentRoute || "";
-
- if (currentRoute !== this.state.prevRoute) {
- // Component already mounted, but the user comes from a route change,
- // like browsing through a project hierarchy.
- this.setState({
- prevRoute: currentRoute,
- });
- }
-
- if (currentRefresh !== this.state.prevRefresh) {
- // Component already mounted, but the user just clicked the
- // refresh button.
- this.setState({
- prevRefresh: currentRefresh,
- });
- }
-
- if(this.state.notFound === true && this.props.itemsAvailable > 0) {
- this.setState({
- notFound: false,
- });
- }
-
- if (prevProps.working === true && this.props.working === false) {
- this.setState({
- notFound: this.props.itemsAvailable === 0,
- });
- }
- }
-