Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Suspense throttling mechanism (#26802)
Summary: The throttling mechanism for fallbacks should apply to both their appearance _and_ disappearance. This was mostly addressed by #26611. See that PR for additional context. However, a flaw in the implementation is that we only update the the timestamp used for throttling when the fallback initially appears. We don't update it when the real content pops in. If lots of content in separate Suspense trees loads around the same time, you can still get jank. The issue is fixed by updating the throttling timestamp whenever the visibility of a fallback changes. Not just when it appears. DiffTrain build for commit facebook/react@4bfcd02. Reviewed By: hoxyq Differential Revision: D45920350 Pulled By: sammy-SC fbshipit-source-id: f5df1709a66e8014d4458fdfdf960d58e0acc45f
- Loading branch information