Skip to content

[PB-6362] feature/Impove cloud sync timeline synchronisation#443

Open
CandelR wants to merge 2 commits intofeature/PB-6362-cloud-syncfrom
feature/PB-6362-improve-cloud-sync
Open

[PB-6362] feature/Impove cloud sync timeline synchronisation#443
CandelR wants to merge 2 commits intofeature/PB-6362-cloud-syncfrom
feature/PB-6362-improve-cloud-sync

Conversation

@CandelR
Copy link
Copy Markdown
Contributor

@CandelR CandelR commented May 7, 2026

Refactors cloud history sync and Photos timeline hooks for correctness and performance.

Summary

  • PhotoCloudBrowser.syncAllHistory: replaces the sequential month iteration. Now load all history fetching drive folders.
  • usePhotosTimeline split: extracted into useLocalAssets (MediaLibrary pagination) and useCloudAssets (database cloud items) for independent reactivity.
  • Eager local asset loading: useLocalAssets loads all MediaLibrary pages in the background immediately after mount instead of waiting for onEndReached. Fixes a bug where cloud-only items from other devices appeared before local assets had finished paginating.
  • mergeCloudIntoGroups: refactored to preserve reference equality for groups with no cloud additions, so FlashList skips reconciliation for unchanged cells.
  • LocalPhotoCell: adds a custom memo comparator and key={item.id} on Image to prevent the previous photo from flashing when a cell is recycled.

…proved cloud history sync and fix local asset eager loading in Photos timeline
@CandelR CandelR self-assigned this May 7, 2026
@CandelR CandelR added the enhancement New feature or request label May 7, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant