defcda519e
## Fixes: 4351: "Infinite load won't work if the same sort option clicked" Test case: 1. Click Following 2. Click New 3. Scroll down to load at least 1 extra page. 4. Go up and click New again. ## The Issue: `scrollBottomCbMap[page]` in this case did not reset since the `id` remained the same. ## The Fix: I don't know how else to notify the effect to run. Perhaps "when `page=1`" is one criteria, but I found that removing `scrollBottomCbMap` can also fix it. I don't know what scenario that `scrollBottomCbMap` was originally meant to handle, so will need to depend of reviewer to confirm I did not break something else. This fix assumes that recent inf-scroll fixes and debouncing would have addressed the "weird stuff happening with fast scrolling" problem mentioned in the comments. |
||
---|---|---|
.. | ||
index.js | ||
view.jsx |