Skip to content

Added unit tests for ReactFiberStack - #1

Closed
bvaughn wants to merge 1 commit into
gaearon:context-boundariesfrom
bvaughn:react-fiber-stack-tests
Closed

bvaughn wants to merge 1 commit into
gaearon:context-boundariesfrom
bvaughn:react-fiber-stack-tests

Conversation

@bvaughn

@bvaughn bvaughn commented Dec 22, 2016

Copy link
Copy Markdown

Relates to react/pull/8627

@bvaughn

bvaughn commented Dec 22, 2016

Copy link
Copy Markdown
Author

Will re-submit this to the main facebook/react repo once the stack API is settled in 8627.

gaearon pushed a commit that referenced this pull request Aug 4, 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.

1 participant