Skip to content

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

Merged
merged 2 commits into from
Sep 4, 2017
Merged

Conversation

singhabhilash
Copy link
Contributor

No description provided.

@@ -85,6 +85,12 @@ export default function ChallengeListing(props) {
);
}

/* eslint-env browser */
if (document) {
Copy link
Collaborator

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.

@birdofpreyru
Copy link
Collaborator

@daft300punk any update to this?

@birdofpreyru
Copy link
Collaborator

@daft300punk Hey-ho? Any update?!!

@singhabhilash
Copy link
Contributor Author

Checkout now. Sorry for the delay, was a little away for visa purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants