Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 12802f2

Browse files
committed
Wrong old local url being used on updates
1 parent e179889 commit 12802f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ const imageCacheHoc = <P extends object>(
287287
if (isFile || !this.invalidUrl) {
288288
if (isFile) {
289289
this.onSourceLoaded({
290-
path: url,
291-
fileName: this.fileSystem.getFileNameFromUrl(url),
290+
path: nextUrl,
291+
fileName: this.fileSystem.getFileNameFromUrl(nextUrl),
292292
})
293293
} else {
294294
// Add a cache lock to file with this name (prevents concurrent <CacheableImage> components from pruning a file with this name from cache).

0 commit comments

Comments
 (0)