We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12adaec commit 14aac6eCopy full SHA for 14aac6e
src/shared/routes/ChallengeDetails.jsx
@@ -7,9 +7,10 @@
7
8
import _ from 'lodash';
9
import LoadingPagePlaceholder from 'components/LoadingPagePlaceholder';
10
+import path from 'path';
11
import React from 'react';
12
import qs from 'qs';
-import { AppChunk } from 'topcoder-react-utils';
13
+import { AppChunk, webpack } from 'topcoder-react-utils';
14
15
export default function ChallengeDetailsRoute(props) {
16
return (
@@ -30,6 +31,11 @@ export default function ChallengeDetailsRoute(props) {
30
31
})
32
}
33
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
+ }}
39
/>
40
);
41
0 commit comments