Skip to content

Commit 40dbf19

Browse files
acdlitefacebook-github-bot
authored andcommitted
Fix Suspense throttling mechanism (facebook#26802)
Summary: The throttling mechanism for fallbacks should apply to both their appearance _and_ disappearance. This was mostly addressed by facebook#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
1 parent 7819fef commit 40dbf19

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/Libraries/Renderer

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4cd7065665ea2cf33c306265c8d817904bb401ca
1+
4bfcd02b2cebcb390f5aff0d7747c60a55012d5d

0 commit comments

Comments
 (0)