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
I want to first say thank you for your patience with my many questions over the past few days. I truly appreciate your help and this module has proven to be a one stop shop for a lot of features I wish to implement. THANK YOU!
While trying to implement infinite scrolling I noticed a quirk with totalItems argument in useInfiniteLoader that causes the CPU to spike over 100% when scrolling beyond the item limit.
To Reproduce
I forked the example code and put a print statement in the fakeQuery function. Once I hit the max it starts printing out like crazy and the CPU spikes.
I added totalItems: 100 at line 20 and a print statement at line 129.
Expected behavior
I figured the function call for queries would stop after the limit had been hit.
The text was updated successfully, but these errors were encountered:
I want to first say thank you for your patience with my many questions over the past few days. I truly appreciate your help and this module has proven to be a one stop shop for a lot of features I wish to implement. THANK YOU!
While trying to implement infinite scrolling I noticed a quirk with totalItems argument in useInfiniteLoader that causes the CPU to spike over 100% when scrolling beyond the item limit.
To Reproduce
I forked the example code and put a print statement in the fakeQuery function. Once I hit the max it starts printing out like crazy and the CPU spikes.
I added
totalItems: 100
at line 20 and a print statement at line 129.Expected behavior
I figured the function call for queries would stop after the limit had been hit.
The text was updated successfully, but these errors were encountered: