Skip to content

Fixed issue with app going into infinite loading on multiple images in the record#161

Merged
boris91 merged 3 commits intotetherto:devfrom
denislupookov:infinite-loading-multiple-photo
Feb 12, 2026
Merged

Fixed issue with app going into infinite loading on multiple images in the record#161
boris91 merged 3 commits intotetherto:devfrom
denislupookov:infinite-loading-multiple-photo

Conversation

@denislupookov
Copy link
Contributor

Requirements

The application does not go into an infinite loading state when trying to view an item with more than two photos

Changes

The infinite loop was caused by the application unconditionally updating form values every time files were loaded, which triggered a re-render and a new fetch. Was fixed by adding a check to only update the form when the loaded data is actually different from the existing values.

Screenshots/Recordings

Screen.Recording.2026-02-11.at.10.58.38.mov

@denislupookov denislupookov changed the title Fixed issue with app going into infinite loading on multiple images i… Fixed issue with app going into infinite loading on multiple images in the record Feb 11, 2026
boris91
boris91 previously approved these changes Feb 11, 2026
Copy link
Contributor

@giorgikh93 giorgikh93 left a comment

Choose a reason for hiding this comment

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

Do order matter while comparing two arrays? any scenario it can change and we detect it as not equal? it's an edge case, even if so, +1 extra render wouldn't harm the performance but if you think an array ordering can be different at some point, we can normalize two arrays before comparing.

@boris91 boris91 merged commit e25ffa9 into tetherto:dev Feb 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants