mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
fix: ensure caching in file explorers
This commit is contained in:
@@ -72,7 +72,7 @@ export const VolumeFileBrowser = ({
|
||||
setLoadingFolders((prev) => new Set(prev).add(folderPath));
|
||||
|
||||
try {
|
||||
const result = await queryClient.fetchQuery(
|
||||
const result = await queryClient.ensureQueryData(
|
||||
listFilesOptions({
|
||||
path: { name: volumeName },
|
||||
query: { path: folderPath },
|
||||
@@ -101,7 +101,7 @@ export const VolumeFileBrowser = ({
|
||||
}
|
||||
}
|
||||
},
|
||||
[volumeName, fetchedFolders, queryClient.fetchQuery],
|
||||
[volumeName, fetchedFolders, queryClient.ensureQueryData],
|
||||
);
|
||||
|
||||
const handleFolderHover = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user