Fix some SWR funkiness

This commit is contained in:
Dane Everitt 2020-07-10 22:53:52 -07:00
parent 5da9824fb7
commit fa9800fa88
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
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,
}
);
};