Hook to access the file cache context.
The file cache context value
Error if used outside of FileCacheProvider
function MyFileComponent() { const { isReady, getFileTree, uploadFile } = useFileCache(); if (!isReady) return <div>Loading...</div>; // Use file operations...} Copy
function MyFileComponent() { const { isReady, getFileTree, uploadFile } = useFileCache(); if (!isReady) return <div>Loading...</div>; // Use file operations...}
Hook to access the file cache context.