perf: Slim down loggedInViewer tRPC router (#20111)

* perf: Slim down loggedInViewer tRPC router

* Fixed trpc client calls for new routes

* Moved bookingUnconfirmedCount

* Moved getUserTopBanners to me router

* Moved shouldVerifyEmail to me router

* Moved i18n from public to its own router

* fix ssrInit

* fix ssrInit usage

* fix type check

* better naming

* fix

* fix

* Fix types

* Removed used of importHandler

---------

Co-authored-by: hbjORbj <sldisek783@gmail.com>
This commit is contained in:
Keith Williams
2025-03-16 18:22:48 -07:00
committed by GitHub
co-authored by hbjORbj
parent 424d94f16d
commit 20d6eb5200
81 changed files with 162 additions and 188 deletions
@@ -89,7 +89,7 @@ const OnboardingPage = (props: PageProps) => {
const params = useParamsWithFallback();
const router = useRouter();
const [user] = trpc.viewer.me.useSuspenseQuery();
const [user] = trpc.viewer.me.get.useSuspenseQuery();
const { t } = useLocale();
const result = stepRouteSchema.safeParse({