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

Function useWorkspacesWithMetadata

apps/sim/hooks/queries/workspace.ts:95–102  ·  view source on GitHub ↗
(enabled = true)

Source from the content-addressed store, hash-verified

93 * Used by the redirect page to determine which workspace to open.
94 */
95export function useWorkspacesWithMetadata(enabled = true) {
96 return useQuery({
97 queryKey: workspaceKeys.list('active'),
98 queryFn: ({ signal }) => fetchWorkspaces('active', signal),
99 enabled,
100 staleTime: 30 * 1000,
101 })
102}
103
104export function useWorkspaceCreationPolicy(enabled = true) {
105 return useQuery({

Callers 1

WorkspacePageFunction · 0.90

Calls 1

fetchWorkspacesFunction · 0.85

Tested by

no test coverage detected