import React from "react"; import PageLoadingBar from "pages/common/PageLoadingBar"; import { retryPromise } from "utils/AppsmithUtils"; import PerformanceTracker, { PerformanceTransactionName, } from "utils/PerformanceTracker"; class ApplicationListLoader extends React.PureComponent { constructor(props: any) { super(props); this.state = { Page: null, }; } componentDidMount() { PerformanceTracker.stopTracking(PerformanceTransactionName.SIGN_UP); PerformanceTracker.stopTracking(PerformanceTransactionName.LOGIN_CLICK); retryPromise(() => import(/* webpackChunkName: "applications" */ "./index"), ).then(module => { this.setState({ Page: module.default }); }); } render() { const { Page } = this.state; return Page ? : ; } } export default ApplicationListLoader;