MCPcopy Index your code
hub / github.com/simstudioai/sim / useStorageInfo

Function useStorageInfo

apps/sim/hooks/queries/workspace-files.ts:273–281  ·  view source on GitHub ↗
(enabled = true)

Source from the content-addressed store, hash-verified

271 * Hook to fetch storage info
272 */
273export function useStorageInfo(enabled = true) {
274 return useQuery({
275 queryKey: workspaceFilesKeys.storageInfo(),
276 queryFn: ({ signal }) => fetchStorageInfo(signal),
277 enabled,
278 retry: false, // Don't retry on 404
279 staleTime: 60 * 1000, // 1 minute - storage info doesn't change often
280 })
281}
282
283/**
284 * Upload workspace file mutation

Callers

nothing calls this directly

Calls 1

fetchStorageInfoFunction · 0.85

Tested by

no test coverage detected