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 <[email protected]>
This commit is contained in:
1 parent
424d94f16d
commit
20d6eb5200
81 files changed
+162
-188
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { trpc } from "../trpc";
|
||||
|
||||
export function useEmailVerifyCheck() {
|
||||
const emailCheck = trpc.viewer.shouldVerifyEmail.useQuery(undefined, {
|
||||
const emailCheck = trpc.viewer.me.shouldVerifyEmail.useQuery(undefined, {
|
||||
retry(failureCount) {
|
||||
return failureCount > 3;
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { trpc } from "../trpc";
|
||||
|
||||
export function useMeQuery() {
|
||||
const meQuery = trpc.viewer.me.useQuery(undefined, {
|
||||
const meQuery = trpc.viewer.me.get.useQuery(undefined, {
|
||||
retry(failureCount) {
|
||||
return failureCount > 3;
|
||||
},
|
||||
|
||||
@@ -14,7 +14,9 @@ export const ENDPOINTS = [
|
||||
"eventTypes",
|
||||
"features",
|
||||
"highPerf",
|
||||
"i18n",
|
||||
"insights",
|
||||
"me",
|
||||
"payments",
|
||||
"public",
|
||||
"timezones",
|
||||
|
||||
Reference in new issue
Block a user