openedx / frontend-app-discussions

A React-based micro frontend for the Open edX discussion forums.
GNU Affero General Public License v3.0
6 stars 61 forks source link

fix: resolved load more posts delay issue #602

Closed awais-ansari closed 9 months ago

awais-ansari commented 9 months ago

INF-1090

Description I noticed in Hotjar recordings that the “Load more posts” button is very slow and gets even slower with successive clicks. I’ve attached a recording of a test I conducted.

Implementation

Screenshot 2023-11-06 at 9 55 07 PM

https://www.loom.com/share/4453d72e480243888de2a89cf206ce8f?sid=4f0da169-c032-4f40-99f5-ae6800f6b7aa

codecov[bot] commented 9 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (7d7221b) 92.32% compared to head (47e1477) 92.37%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #602 +/- ## ========================================== + Coverage 92.32% 92.37% +0.05% ========================================== Files 169 169 Lines 3451 3450 -1 Branches 899 898 -1 ========================================== + Hits 3186 3187 +1 + Misses 244 243 -1 + Partials 21 20 -1 ``` | [Files](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/602?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx) | Coverage Δ | | |---|---|---| | [src/discussions/posts/post/PostLink.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/602?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL3Bvc3RzL3Bvc3QvUG9zdExpbmsuanN4) | `96.77% <85.71%> (+6.14%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.