Add Promise deduplication (request coalescing) to the `getAssetInfo` method in `ImmichClient` (`lib/immich.ts`) to prevent concurrent identical requests from firing multiple times to the Immich server. This is particularly helpful when calling `Promise.all` on multiple assets concurrently (e.g. hero images on the homepage or multiple album cover placeholder hashes). Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
12 KiB
12 KiB