Fix some SWR funkiness
This commit is contained in:
parent
5da9824fb7
commit
fa9800fa88
4 changed files with 30 additions and 22 deletions
|
@ -11,5 +11,9 @@ export default () => {
|
|||
return useSWR<FileObject[]>(
|
||||
`${uuid}:files:${hash}`,
|
||||
() => loadDirectory(uuid, cleanDirectoryPath(hash)),
|
||||
{
|
||||
revalidateOnMount: false,
|
||||
refreshInterval: 0,
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue