2025-04-02T14:22:10Z app[17814621c56328] fra [info] ⨯ TypeError: Cannot use 'in' operator to search for 'enabled' in undefined2025-04-02T14:22:10Z app[17814621c56328] fra [info] at IndexPage (src/app/app/[appId]/setup/page.tsx:86:24)2025-04-02T14:22:10Z app[17814621c56328] fra [info] 84 | const trpc = useTRPC();2025-04-02T14:22:10Z app[17814621c56328] fra [info] 85 | const { data } = useSubscription(2025-04-02T14:22:10Z app[17814621c56328] fra [info]> 86 | trpc.sseSetupEvents.subscriptionOptions({ appId })2025-04-02T14:22:10Z app[17814621c56328] fra [info] | ^2025-04-02T14:22:10Z app[17814621c56328] fra [info] 87 | );2025-04-02T14:22:10Z app[17814621c56328] fra [info] 88 |
import { useSubscription } from "@trpc/tanstack-react-query";
enabled
sseSetupEvents: baseProcedure .input(z.object({ appId: z.string() })) .subscription(async function* ({ input, signal }) {