Commit 1945939
avoid calling setState when onScrollEmitter exists (#44609)
Summary:
Pull Request resolved: #44609
changelog: [internal]
Do not call setState when onScrollEmitter exists to prevent unnecessary re-render.
Reviewed By: yungsters
Differential Revision: D57537436
fbshipit-source-id: 3a0883171e8fa7995b715aff84702daca075f8431 parent 8d5bbca commit 1945939
File tree
1 file changed
+7
-3
lines changed- packages/react-native/Libraries/Components/ScrollView
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
967 | | - | |
968 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| |||
0 commit comments