spreen_co
spreen_co
TtRPC
Created by spreen_co on 4/2/2025 in #❓-help
subscription: Cannot use 'in' operator to search for 'enabled' in undefined
2025-04-02T14:22:10Z app[17814621c56328] fra [info] ⨯ TypeError: Cannot use 'in' operator to search for 'enabled' in undefined
2025-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 |
2025-04-02T14:22:10Z app[17814621c56328] fra [info] ⨯ TypeError: Cannot use 'in' operator to search for 'enabled' in undefined
2025-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 |
using import { useSubscription } from "@trpc/tanstack-react-query"; the word enabled does not occur anywhere in my code, the subscription looks like
sseSetupEvents: baseProcedure
.input(z.object({ appId: z.string() }))
.subscription(async function* ({ input, signal }) {
sseSetupEvents: baseProcedure
.input(z.object({ appId: z.string() }))
.subscription(async function* ({ input, signal }) {
7 replies
TtRPC
Created by spreen_co on 4/1/2025 in #❓-help
Migrating pages router to app router
No description
48 replies