Skip to content

Check for event listener in props on demand instead of maintaining listener bank#8192

Merged
sebmarkbage merged 1 commit intofacebook:masterfrom
sebmarkbage:lazyeventlisteners
Nov 8, 2016
Merged

Check for event listener in props on demand instead of maintaining listener bank#8192
sebmarkbage merged 1 commit intofacebook:masterfrom
sebmarkbage:lazyeventlisteners

Conversation

@sebmarkbage
Copy link
Copy Markdown
Contributor

Builds on #8190, #8189 and #8176

This just reads events from the props instead of storing them in a listener back.

I had to rewrite a bunch of tests to cover this model. I removed the tests that just test the adding and removing over listeners since there is no equivalent behavior anymore.

Copy link
Copy Markdown
Collaborator

@sophiebits sophiebits left a comment

Choose a reason for hiding this comment

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

last commit lgtm, haven't reviewed controlled components

This just reads events from the props instead of storing them in a
listener back.

I had to rewrite a bunch of tests to cover this model.
I removed the tests that just test the adding and removing over listeners
since there is no equivalent behavior anymore.
@sebmarkbage sebmarkbage merged commit a878c30 into facebook:master Nov 8, 2016
sebmarkbage added a commit to sebmarkbage/react that referenced this pull request Nov 8, 2016
)"

This reverts commit a878c30.

The previous stuff that this builds on didn't successfully land fully. Since I
want to measure this in isolation, I'll revert this for now.
sebmarkbage added a commit that referenced this pull request Nov 8, 2016
…8239)

This reverts commit a878c30.

The previous stuff that this builds on didn't successfully land fully. Since I
want to measure this in isolation, I'll revert this for now.
sebmarkbage added a commit to sebmarkbage/react that referenced this pull request Nov 14, 2016
sebmarkbage added a commit to sebmarkbage/react that referenced this pull request Nov 14, 2016
sebmarkbage added a commit to sebmarkbage/react that referenced this pull request Nov 15, 2016
sebmarkbage added a commit that referenced this pull request Nov 15, 2016
* Reapply Check for event listener in props instead of bank (#8192)

This reverts the previous revert.

* Don't throw on falsy event listeners

Some code relies on passing null. This restores the earlier behavior.
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
This just reads events from the props instead of storing them in a
listener back.

I had to rewrite a bunch of tests to cover this model.
I removed the tests that just test the adding and removing over listeners
since there is no equivalent behavior anymore.
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
)" (facebook#8239)

This reverts commit a878c30.

The previous stuff that this builds on didn't successfully land fully. Since I
want to measure this in isolation, I'll revert this for now.
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
)

* Reapply Check for event listener in props instead of bank (facebook#8192)

This reverts the previous revert.

* Don't throw on falsy event listeners

Some code relies on passing null. This restores the earlier behavior.
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.

3 participants