@playlive/react-query
    Preparing search index...

    Function useTiltifyUserCampaigns

    • TanStack Query hook that fetches every personal campaign owned by a Tiltify user, keyed on userId.

      Auto-disables while userId is nullish / empty / the literal "null" string — mirrors the fetcher's defensive guard for localStorage-backed configs. Multiple sibling consumers share the same cache slot.

      Defaults tuned for a setup-screen picker: staleTime: Infinity, refetchInterval: false. A user's owned-campaigns list is essentially write-once during a setup session — polling it every 5 s (the workspace default in DEFAULT_QUERY_OPTIONS) would burn bandwidth and hit the Tiltify proxy uselessly. Callers who need a live-updating list can override via options.refetchInterval.

      Parameters

      Returns UseFetchResult<TiltifyPersonalCampaign[]>

      Standard UseFetchResult carrying the campaign list.

      const { data: campaigns, isFetching } = useTiltifyUserCampaigns({ userId });