Skip to content

OBPIH-6716 Sorting issue on invoice confirm page for long list of items #4845

Merged
awalkowiak merged 2 commits intorelease/0.9.2-hotfix1from
OBPIH-6716
Sep 18, 2024
Merged

OBPIH-6716 Sorting issue on invoice confirm page for long list of items #4845
awalkowiak merged 2 commits intorelease/0.9.2-hotfix1from
OBPIH-6716

Conversation

@alannadolny
Copy link
Collaborator

✨ Description of Change

Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-6716

Description:
The first fix was to use a map as it is mentioned in the docs:

InfiniteLoader is not a stateful component, meaning that it does not keep track of which rows it has requested to be loaded. Your component will need to track this information yourself to avoid loading rows multiple times. One way to do this is to to use a map to track the status of each row like so ...

The second fix is to allow react-virtualize to fetch the number of items that the table needs. Previously we were fetching only 10 items each time. So in case of quick scrolling, we missed some items.

@alannadolny alannadolny self-assigned this Sep 17, 2024
@github-actions github-actions bot added the domain: frontend Changes or discussions relating to the frontend UI label Sep 17, 2024
@awalkowiak awalkowiak merged commit d6844c2 into release/0.9.2-hotfix1 Sep 18, 2024
@awalkowiak awalkowiak deleted the OBPIH-6716 branch September 18, 2024 15:26
jwalbers pushed a commit to jwalbers/openboxes that referenced this pull request Oct 29, 2024
jwalbers pushed a commit to jwalbers/openboxes that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants