Slightly less obtuse way of handling this little checkbox
This commit is contained in:
parent
60f170e919
commit
24417ac516
3 changed files with 23 additions and 25 deletions
|
@ -7,6 +7,8 @@ export default () => {
|
|||
const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
|
||||
const directory = ServerContext.useStoreState(state => state.files.directory);
|
||||
|
||||
console.log('firing');
|
||||
|
||||
return useSWR<FileObject[]>(
|
||||
`${uuid}:files:${directory}`,
|
||||
() => loadDirectory(uuid, cleanDirectoryPath(directory)),
|
||||
|
|
Reference in a new issue