Skip to content

OBPIH-6668 Responsiveness in very long shipments with split line appears and disappears#4831

Merged
awalkowiak merged 4 commits intodevelopfrom
OBPIH-6668
Sep 18, 2024
Merged

OBPIH-6668 Responsiveness in very long shipments with split line appears and disappears#4831
awalkowiak merged 4 commits intodevelopfrom
OBPIH-6668

Conversation

@alannadolny
Copy link
Collaborator

@alannadolny alannadolny commented Sep 9, 2024

✨ Description of Change

Link to GitHub issue or Jira ticket: OBPIH-6668

Description:
The issue with disappearing new lines was caused by managing the state in the component and in the form state at the same time, so when we were fetching new lines, we overrode the already created new lines.

@alannadolny alannadolny self-assigned this Sep 9, 2024
@github-actions github-actions bot added the domain: frontend Changes or discussions relating to the frontend UI label Sep 9, 2024
Copy link
Collaborator

@kchelstowski kchelstowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as a side note: in some places it's a bit difficult to spot, what is actually changed and what are just the lint fixes, so I would not call the fix eslint on a whole file, or at least indicate in a PR what lines are the "real" changes" and which could be skipped.


this.loadMoreRows(append)({
startIndex: startIndex + this.props.pageSize,
fetchedLineItems: fetchedLineItems + lineItemsData.length,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at first thought I would think that fetchedLineItems actually store the items, not the size of the items, so how about renaming it to fetchedItemsSize/fetchedLineItemsSize/fetchedLineItemsCount?

Copy link
Collaborator Author

@alannadolny alannadolny Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed and what are just the lint fixes, so I would not call the fix eslint on a whole file

btw, I think we should run the linter for the entire project some time ago.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchedLineItems: fetchedLineItems + lineItemsData.length,

I noticed that it's not used anymore, so I am deleting it 😄

@awalkowiak awalkowiak merged commit f44056e into develop Sep 18, 2024
@awalkowiak awalkowiak deleted the OBPIH-6668 branch September 18, 2024 09:33
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