I found a bug in Scroller component. This bug is triggered in a specific case.
First the user have to reach the limit data.length < this.props.maxSimultaneousDays with scroll. Then, when the setTimeout is invoked but not consume yet (800ms), the user unmount the component (i.e. by moving to the screen back).
I think that my explanation is not clear enough so I record the bug.
I added a clearTimeout at the unmount of the component.
Seems to be fixed now.
If something need to be changged in this PR, ask me.
Hello,
I found a bug in Scroller component. This bug is triggered in a specific case.
First the user have to reach the limit
data.length < this.props.maxSimultaneousDays
with scroll. Then, when the setTimeout is invoked but not consume yet (800ms), the user unmount the component (i.e. by moving to the screen back).I think that my explanation is not clear enough so I record the bug.
I added a
clearTimeout
at the unmount of the component.Seems to be fixed now.
If something need to be changged in this PR, ask me.
Thanks for your work.
Have a good day