-
Notifications
You must be signed in to change notification settings - Fork 212
Issue #210 #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #210 #273
Conversation
@@ -85,6 +85,12 @@ export default function ChallengeListing(props) { | |||
); | |||
} | |||
|
|||
/* eslint-env browser */ | |||
if (document) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daft300punk To check, whether the code is executed at server or client side, please always use isClientSide()
or isServerSide()
from https://github.com/topcoder-platform/community-app/blob/develop/src/shared/utils/isomorphy.js
Also, placing this code into render method, I expect, will have side effects: ReactJS is free to re-render a component in many cases, not only when we enter the page, thus this code, I believe, will scroll the page to top in some cases when we don't need it. I guess, we should put it into onClick
handler of the View more challenges
button. Also, inside that handler you don't have to check for client side, as click handlers are always invoked at client-side only.
@daft300punk any update to this? |
@daft300punk Hey-ho? Any update?!! |
Checkout now. Sorry for the delay, was a little away for visa purposes. |
No description provided.