Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛Remove call to trpc
Luke Vella30f57948e282
diff --git a/apps/web/src/components/user-provider.tsx b/apps/web/src/components/user-provider.tsxindex 820c37db1..020819ded 100644--- a/apps/web/src/components/user-provider.tsx+++ b/apps/web/src/components/user-provider.tsx@@ -7,8 +7,6 @@ import { z } from "zod";import { PostHogProvider } from "@/contexts/posthog";import { PreferencesProvider } from "@/contexts/preferences";-import { isSelfHosted } from "@/utils/constants";-import { trpc } from "@/utils/trpc/client";import { useRequiredContext } from "./use-required-context";@@ -84,11 +82,6 @@ export const UserProvider = (props: { children?: React.ReactNode }) => {}}, [session.status]);- // TODO (Luke Vella) [2023-09-19]: Remove this when we have a better way to query for an active subscription- trpc.user.subscription.useQuery(undefined, {- enabled: !isSelfHosted,- });-if (!user || !session.data) {return null;}