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

Function useOrganizationSubscription

apps/sim/hooks/queries/organization.ts:241–250  ·  view source on GitHub ↗
(orgId: string)

Source from the content-addressed store, hash-verified

239 * Hook to fetch organization subscription
240 */
241export function useOrganizationSubscription(orgId: string) {
242 return useQuery({
243 queryKey: organizationKeys.subscription(orgId),
244 queryFn: ({ signal }) => fetchOrganizationSubscription(orgId, signal),
245 enabled: !!orgId,
246 retry: false,
247 staleTime: 30 * 1000,
248 placeholderData: keepPreviousData,
249 })
250}
251
252/**
253 * Fetch organization billing data

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected