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

Fixed potential interaction tracing leak in Suspense memoization #15531

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Apr 29, 2019

I also audited the other places we call unstable_wrap() in the React DOM bundle and verified that they didn't have a similar problem. We have pretty good suspense test coverage and pretty good tracing test coverage, but it seems like our test coverage of the overlap may be a little weak. (Although to be fair, one of the profiler tests would have caught this if I hadn't mistakenly overlooked it.)

This code has been around for a long time (PR #14429) but only started causing a noticeable problem after a recent React sync.

…ation

Audited the other places we call unstable_wrap() in React DOM and verified that they didn't have this similar problem.
@bvaughn bvaughn merged commit 1b752f1 into facebook:master Apr 29, 2019
@bvaughn bvaughn deleted the dont-leak-wrapped-callbacks branch April 29, 2019 22:08
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.

3 participants