Skip to content

Commit 14aac6e

Browse files
SSR: Revert changes make in PR #4285
1 parent 12adaec commit 14aac6e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/shared/routes/ChallengeDetails.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
import _ from 'lodash';
99
import LoadingPagePlaceholder from 'components/LoadingPagePlaceholder';
10+
import path from 'path';
1011
import React from 'react';
1112
import qs from 'qs';
12-
import { AppChunk } from 'topcoder-react-utils';
13+
import { AppChunk, webpack } from 'topcoder-react-utils';
1314

1415
export default function ChallengeDetailsRoute(props) {
1516
return (
@@ -30,6 +31,11 @@ export default function ChallengeDetailsRoute(props) {
3031
})
3132
}
3233
renderPlaceholder={() => <LoadingPagePlaceholder />}
34+
renderServer={() => {
35+
const p = webpack.resolveWeak('containers/challenge-detail');
36+
const ChallengeDetails = webpack.requireWeak(path.resolve(__dirname, p));
37+
return <ChallengeDetails {...props} />;
38+
}}
3339
/>
3440
);
3541
}

0 commit comments

Comments
 (0)