Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI freeze for about 1 second when opening an Order Detail #14923

Open
pmusolino opened this issue Jan 20, 2025 · 2 comments · May be fixed by #14999
Open

UI freeze for about 1 second when opening an Order Detail #14923

pmusolino opened this issue Jan 20, 2025 · 2 comments · May be fixed by #14999
Assignees
Labels
feature: order details Related to order details. priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement.

Comments

@pmusolino
Copy link
Member

I've noticed a consistent UI freeze for about one second when opening the Order details screen on iOS. This issue doesn't occur on other screens. It seems the freeze is due to multiple fetch requests being executed when loading the details, as all read operations are handled on the main thread using the main context.

This seems related to the following warning:

Image

From a discussion that happened here (pe5sF9-3IY#comment-4269), this warning could be occurring because we're making a lot of different fetch requests when loading the details, causing the hang issue.

We should optimize the fetch requests further, for example, by grouping requests to reduce the number of round trips we make to the persistent container. While this issue was discovered during discussions about improving app launch and the warning mentions its effect on app launch, it doesn't seem to be the case here.

Recording

appvideo.1.mov
@pmusolino pmusolino added feature: order details Related to order details. priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement. labels Jan 20, 2025
@pmusolino pmusolino self-assigned this Jan 20, 2025
@dangermattic
Copy link
Collaborator

Thanks for reporting! 👍

@pmusolino
Copy link
Member Author

@itsmeichigo raised other related issues regarding the performFetch() method here: pe5sF9-3IY#comment-4290.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: order details Related to order details. priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement.
Projects
None yet
2 participants