Skip to content

Don't warn about onScroll for SSR - #6678

Merged
zpao merged 1 commit into
react:masterfrom
aweary:onscroll-ssr
May 2, 2016
Merged

Don't warn about onScroll for SSR#6678
zpao merged 1 commit into
react:masterfrom
aweary:onscroll-ssr

Conversation

@aweary

@aweary aweary commented May 2, 2016

Copy link
Copy Markdown
Contributor

Fixes #6626

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

@ghost

ghost commented May 2, 2016

Copy link
Copy Markdown

@aweary updated the pull request.

}

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

Copy link
Copy Markdown
Contributor

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

aweary commented May 2, 2016

Copy link
Copy Markdown
Contributor Author

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

@ghost

ghost commented May 2, 2016

Copy link
Copy Markdown

@aweary updated the pull request.

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

zpao commented May 2, 2016

Copy link
Copy Markdown
Contributor

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
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
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