diff options
| author | Mohamed Bassem <me@mbassem.com> | 2026-02-01 12:37:34 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2026-02-01 12:37:34 +0000 |
| commit | 15d9d9897487d5e1881f75a4d92af37f6937eb80 (patch) | |
| tree | ea59e57c45d5f9f2ae6aa871749e59555d3d2d6b /apps/mobile/lib | |
| parent | 65f6e83f11c82b0ec762e11f3392a80e614ee69a (diff) | |
| download | karakeep-15d9d9897487d5e1881f75a4d92af37f6937eb80.tar.zst | |
refactor: remove unused trpc files from web and mobile
Diffstat (limited to 'apps/mobile/lib')
| -rw-r--r-- | apps/mobile/lib/session.ts | 3 | ||||
| -rw-r--r-- | apps/mobile/lib/trpc.ts | 3 | ||||
| -rw-r--r-- | apps/mobile/lib/upload.ts | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/apps/mobile/lib/session.ts b/apps/mobile/lib/session.ts index 9f539693..d6470145 100644 --- a/apps/mobile/lib/session.ts +++ b/apps/mobile/lib/session.ts @@ -1,8 +1,9 @@ import { useCallback } from "react"; import { useMutation } from "@tanstack/react-query"; +import { useTRPC } from "@karakeep/shared-react/trpc"; + import useAppSettings from "./settings"; -import { useTRPC } from "./trpc"; export function useSession() { const { settings, setSettings } = useAppSettings(); diff --git a/apps/mobile/lib/trpc.ts b/apps/mobile/lib/trpc.ts deleted file mode 100644 index 915c265d..00000000 --- a/apps/mobile/lib/trpc.ts +++ /dev/null @@ -1,3 +0,0 @@ -// Re-export from shared-react to ensure there's only one TRPCProvider context -// This is necessary because the hooks in shared-react use useTRPC from shared-react -export { TRPCProvider, useTRPC } from "@karakeep/shared-react/trpc"; diff --git a/apps/mobile/lib/upload.ts b/apps/mobile/lib/upload.ts index 13abae16..2f323ddb 100644 --- a/apps/mobile/lib/upload.ts +++ b/apps/mobile/lib/upload.ts @@ -1,6 +1,7 @@ import ReactNativeBlobUtil from "react-native-blob-util"; import { useMutation, useQueryClient } from "@tanstack/react-query"; +import { useTRPC } from "@karakeep/shared-react/trpc"; import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; import { zUploadErrorSchema, @@ -8,7 +9,6 @@ import { } from "@karakeep/shared/types/uploads"; import type { Settings } from "./settings"; -import { useTRPC } from "./trpc"; import { buildApiHeaders } from "./utils"; export function useUploadAsset( |
