servicesToptal's picture
Update dataset (part 2)
5cba866 verified
|
Raw History Blame Contribute Delete
1.35 kB

Please make your changes directly in /workspace/repo.

A paged list can show the wrong page and lose previously loaded pages when pages are changed while data is still loading. For example:

  • Open page 1, then quickly open page 2. Page 1 can be missing from the saved data even though it was requested.
  • When two panels display the same list, changing one panel to page 2 while page 1 is still loading can cause the panel to display page 1 rows while the pager shows page 2.
  • Opening another panel while page 2 is loading can sometimes cause page 2 to be requested more than once.

Expected behavior:

  • Each panel should always display the page it is currently on.
  • Opening a panel while a page is loading should not cause it to display another page.
  • Previously loaded pages should not be lost when navigating between pages.
  • The saved data should represent the latest loaded page data correctly.
  • If the same page is loaded more than once, the latest result should be used consistently.
  • The same page should not be unnecessarily requested multiple times.
  • Existing behavior outside these cases should remain unchanged.

Please investigate the behavior, identify the cause, and make the necessary changes. Add tests covering these cases. Lint should not introduce any new issues.

Finish with a final response when your changes are ready.