Skip to content
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

Don't warn about onScroll for SSR #6678

Merged
merged 1 commit into from
May 2, 2016
Merged

Conversation

aweary
Copy link
Contributor

@aweary aweary commented May 2, 2016

Fixes #6626

@zpao using instanceof seems to work fine for identifying ReactServerRenderingTransaction instances, so if that works for you this should resolve it.

@ghost
Copy link

ghost commented May 2, 2016

@aweary updated the pull request.

@@ -210,6 +211,7 @@ function assertValidProps(component, props) {
}

function enqueuePutListener(inst, registrationName, listener, transaction) {
if (transaction instanceof ReactServerRenderingTransaction) return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this this a block and across multiple lines? Lint is only warning about it so not failing Travis but you can see it locally.

@aweary
Copy link
Contributor Author

aweary commented May 2, 2016

@zpao I updated the PR with the linting fix and to use JSX in the test.

@ghost
Copy link

ghost commented May 2, 2016

@aweary updated the pull request.

@zpao zpao added this to the 15.0.x milestone May 2, 2016
@zpao zpao merged commit eb11648 into facebook:master May 2, 2016
@zpao
Copy link
Member

zpao commented May 2, 2016

Thanks :)

zpao pushed a commit that referenced this pull request May 10, 2016
@zpao zpao modified the milestones: 15.0.x, 15.0.3 May 10, 2016
@zpao zpao modified the milestones: 15.0.3, 15.y.z May 20, 2016
@zpao zpao modified the milestones: 15.1.0, 15.y.z May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSR should not warn about onscroll
3 participants