You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because when dragging is happening, something like loading state would change the children props, which will cause this FunctionComponent re-call, then, this fetchMoreTresholdBreached flag would be false again, in tihs situation, here
varonScroll=function(e){/** * Check if component has already called onFetchMore */if(fetchMoreTresholdBreached)return;
it may not work as expected
The text was updated successfully, but these errors were encountered:
i think this should be a
useRef
,react-simple-pull-to-refresh/src/components/pull-to-refresh.tsx
Line 43 in b91b3ef
because when dragging is happening, something like loading state would change the
children
props, which will cause this FunctionComponent re-call, then, thisfetchMoreTresholdBreached
flag would befalse
again, in tihs situation, hereit may not work as expected
The text was updated successfully, but these errors were encountered: