Fix some SWR funkiness

This commit is contained in:
Dane Everitt
2020-07-10 22:53:52 -07:00
parent 5da9824fb7
commit fa9800fa88
4 changed files with 30 additions and 22 deletions

View File

@@ -11,5 +11,9 @@ export default () => {
return useSWR<FileObject[]>(
`${uuid}:files:${hash}`,
() => loadDirectory(uuid, cleanDirectoryPath(hash)),
{
revalidateOnMount: false,
refreshInterval: 0,
}
);
};