Skip to content

Add pooled event test fixtures #1

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

Conversation

nhunzaker
Copy link

Hey Brandon!

I added some pooled event test fixtures:
http://pooled-event-fixtures.surge.sh/event-pooling

I'll follow up on facebook#10237

@aweary
Copy link
Owner

aweary commented Jul 22, 2017

This is great. thanks, Nate!

@aweary aweary merged commit 175d201 into aweary:remove-pooled-class-synthetic-events Jul 22, 2017
aweary pushed a commit that referenced this pull request Aug 1, 2017
aweary added a commit that referenced this pull request Aug 8, 2017
* Remove PooledClass from FallbackCompositionState

The only module that uses FallbackCompositonState is BeforeInputEventPlugin. The way its structured means there can only be a single instance of FallbackCompositionState at any given time (stored in a local variable at the top-level) so we don't really need pooling here at all. Instead, a single object is now stored in FallbackCompositionState, and access (initializing, reseting, getting data) is gaurded by the exported helper object.

* Use new FallbackCompositionState API in BeforeInputEventPlugin

* Implement event-specific pooling in SyntheticEvent

* Remove PooledClass from TopLevelCallbackBookKeeping

* Update results.json

* Add pooled event test fixtures (#1)

* Fix fixture lint
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