Question about timeouts #1353
Unanswered
ugurcanatas
asked this question in
Q&A
Replies: 1 comment
-
Additionally looking at the I might be missing something since i am out of context and also i am not sure if this is the place to ask the question about another library. Or they are internal timeouts from react native. Would love to get more info about this if possible |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
Firstly thanks for this awesome library.
I want to ask a question out of curiousity.
My question is around internal
setTimeout
calls in the library. Specifically revolving aroundItemSeparatorComponent
prop.We were seeing some memory increase in long lists. In order to debug what kind of timeouts that we have, i wrote a proxy around setTimeout calls and saw that usage of
viewabilityConfigCallbackPairs
andItemSeparatorComponent
is the reason for setTimeout calls.viewabilityConfigCallbackPairs
made sense to me but whyItemSeparatorComponent
is also causing setTimeout calls.When i remove both props from
Flashlist
,setTimeout
calls are getting significantly less.I need to also add that
clearTimeout
calls are significantly less. The ones that are not cleared are only cleared when the component is destroyed.My question is that is there a specific reason why
ItemSeparatorComponent
may lead to setTimeout being called?Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions