From d10e4c7a8a944c56775ff3b60b47bcbf3dbe9cf9 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 12:52:32 +0800 Subject: [PATCH 01/10] release(mobile): release v0.2.3 --- apps/mobile/changelog/0.2.3.md | 11 +++++++++++ apps/mobile/package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 apps/mobile/changelog/0.2.3.md diff --git a/apps/mobile/changelog/0.2.3.md b/apps/mobile/changelog/0.2.3.md new file mode 100644 index 000000000..214b4b301 --- /dev/null +++ b/apps/mobile/changelog/0.2.3.md @@ -0,0 +1,11 @@ +# What's New in v0.2.3 + +## Shiny new things + +## Improvements + +## No longer broken + +## Thanks + +Special thanks to volunteer contributors @ for their valuable contributions diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 7e06ca31c..2a4e4b75e 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -1,6 +1,6 @@ { "name": "@follow/mobile", - "version": "0.2.2", + "version": "0.2.3", "private": true, "main": "src/main.tsx", "scripts": { From 6e73cbc75d333b70a88c9acb51d704eeb709b50b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 12:53:19 +0800 Subject: [PATCH 02/10] chore: update version --- apps/mobile/ios/Folo/Info.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/ios/Folo/Info.plist b/apps/mobile/ios/Folo/Info.plist index f56e1df08..9cf333b23 100644 --- a/apps/mobile/ios/Folo/Info.plist +++ b/apps/mobile/ios/Folo/Info.plist @@ -32,7 +32,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.2.2 + 0.2.3 CFBundleSignature ???? CFBundleURLTypes @@ -53,7 +53,7 @@ CFBundleVersion - 110 + 111 ITSAppUsesNonExemptEncryption LSApplicationCategoryType From 46346679abd7afbbacea3a70fc407539bb23432e Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 11 Jul 2025 15:52:37 +0800 Subject: [PATCH 03/10] chore: add nanoid package and update api-fetch to use no-store cache Signed-off-by: Innei --- apps/desktop/layer/renderer/src/lib/api-fetch.ts | 5 ++++- apps/mobile/src/lib/api-fetch.ts | 5 ++++- packages/internal/shared/package.json | 1 + packages/internal/shared/src/auth.ts | 11 ++++++++++- packages/internal/store/package.json | 1 + packages/internal/store/src/user/store.ts | 9 ++++++--- pnpm-lock.yaml | 6 ++++++ 7 files changed, 32 insertions(+), 6 deletions(-) diff --git a/apps/desktop/layer/renderer/src/lib/api-fetch.ts b/apps/desktop/layer/renderer/src/lib/api-fetch.ts index 0b4d8159f..b862302b4 100644 --- a/apps/desktop/layer/renderer/src/lib/api-fetch.ts +++ b/apps/desktop/layer/renderer/src/lib/api-fetch.ts @@ -85,7 +85,10 @@ export const apiFetch = ofetch.create({ export const apiClient = hc(env.VITE_API_URL, { fetch: async (input, options = {}) => - apiFetch(input.toString(), options).catch((err) => { + apiFetch(input.toString(), { + ...options, + cache: "no-store", + }).catch((err) => { if (err instanceof FetchError && !err.response) { setApiStatus(NetworkStatus.OFFLINE) } diff --git a/apps/mobile/src/lib/api-fetch.ts b/apps/mobile/src/lib/api-fetch.ts index 6d6f30e74..91dc48337 100644 --- a/apps/mobile/src/lib/api-fetch.ts +++ b/apps/mobile/src/lib/api-fetch.ts @@ -78,7 +78,10 @@ export const apiFetch = ofetch.create({ export const apiClient = hc(proxyEnv.API_URL, { fetch: async (input: any, options = {}) => - apiFetch(input.toString(), options).catch((err) => { + apiFetch(input.toString(), { + ...options, + cache: "no-store", + }).catch((err) => { throw err }), async headers() { diff --git a/packages/internal/shared/package.json b/packages/internal/shared/package.json index 58befecbc..2d100ece6 100644 --- a/packages/internal/shared/package.json +++ b/packages/internal/shared/package.json @@ -40,6 +40,7 @@ "better-auth": "1.2.9", "drizzle-orm": "0.44.2", "hono": "4.8.1", + "nanoid": "5.1.5", "sonner": "2.0.6", "stripe": "18.2.1", "zod": "3.25.75" diff --git a/packages/internal/shared/src/auth.ts b/packages/internal/shared/src/auth.ts index 0cdaae774..a94dd1df4 100644 --- a/packages/internal/shared/src/auth.ts +++ b/packages/internal/shared/src/auth.ts @@ -4,6 +4,7 @@ import type { authPlugins } from "@follow/shared/hono" import type { BetterAuthClientPlugin, BetterFetchOption } from "better-auth/client" import { inferAdditionalFields, twoFactorClient } from "better-auth/client/plugins" import { createAuthClient } from "better-auth/react" +import { nanoid } from "nanoid" type AuthPlugin = (typeof authPlugins)[number] export const baseAuthPlugins = [ @@ -40,7 +41,6 @@ export type AuthClient = Ret plugins: [...typeof baseAuthPlugins, ...ExtraPlugins] }> > - export type LoginRuntime = "browser" | "app" export class Auth { @@ -58,12 +58,21 @@ export class Auth { plugins: baseAuthPlugins, fetchOptions: { ...this.options.fetchOptions, + onRequest: (context) => { const referralCode = localStorage.getItem(getStorageNS("referral-code")) if (referralCode) { context.headers.set("folo-referral-code", referralCode) } + if (context.query) { + context.query.v = nanoid(8) + } else { + context.query = { + v: nanoid(8), + } + } + this.options.fetchOptions?.onRequest?.(context) return context diff --git a/packages/internal/store/package.json b/packages/internal/store/package.json index dbbf4a267..c7aa67227 100644 --- a/packages/internal/store/package.json +++ b/packages/internal/store/package.json @@ -124,6 +124,7 @@ "@tanstack/react-query": "5.81.5", "es-toolkit": "1.39.6", "immer": "10.1.1", + "nanoid": "5.1.5", "zustand": "5.0.6" } } diff --git a/packages/internal/store/src/user/store.ts b/packages/internal/store/src/user/store.ts index fe7374df2..89b8384b6 100644 --- a/packages/internal/store/src/user/store.ts +++ b/packages/internal/store/src/user/store.ts @@ -3,6 +3,7 @@ import type { UserSchema } from "@follow/database/schemas/types" import { UserService } from "@follow/database/services/user" import type { AuthSession } from "@follow/shared/hono" import { create, indexedResolver, windowScheduler } from "@yornaath/batshit" +import { nanoid } from "nanoid" import { apiClient, authClient } from "../context" import type { Hydratable, Resetable } from "../internal/base" @@ -66,9 +67,11 @@ class UserSyncService { }) async whoami() { - const res = (await (apiClient()["better-auth"] as any)[ - "get-session" - ].$get()) as AuthSession | null + const res = (await (apiClient()["better-auth"] as any)["get-session"].$get({ + query: { + v: nanoid(8), + }, + })) as AuthSession | null if (res) { const user = honoMorph.toUser(res.user, true) immerSet((state) => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62be38d94..db7b63848 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1697,6 +1697,9 @@ importers: hono: specifier: 4.8.1 version: 4.8.1(patch_hash=5c74c2d2afaa5880c13d75458dd26c84da568851691b1fb6de6d877c29936d05) + nanoid: + specifier: 5.1.5 + version: 5.1.5 sonner: specifier: 2.0.6 version: 2.0.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -1739,6 +1742,9 @@ importers: immer: specifier: 10.1.1 version: 10.1.1(patch_hash=594c60b929bc0a3b56576f1a1787da1aec2a1fba51e3c21ec09c0ed38280af6c) + nanoid: + specifier: 5.1.5 + version: 5.1.5 react: specifier: 19.0.0 version: 19.0.0 From 96485e06b02ec81d10cb45305a1b64601c5e2cee Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 16:01:50 +0800 Subject: [PATCH 04/10] chore: update CFBundleVersion to 112 in Info.plist --- apps/mobile/ios/Folo/Info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/ios/Folo/Info.plist b/apps/mobile/ios/Folo/Info.plist index 9cf333b23..9a6d436e5 100644 --- a/apps/mobile/ios/Folo/Info.plist +++ b/apps/mobile/ios/Folo/Info.plist @@ -53,7 +53,7 @@ CFBundleVersion - 111 + 112 ITSAppUsesNonExemptEncryption LSApplicationCategoryType From ad98801f5eab95aeba2bed51a3f501eed6c6f8ce Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 11 Jul 2025 17:17:08 +0800 Subject: [PATCH 05/10] fix: remove `v` Signed-off-by: Innei --- packages/internal/store/src/user/store.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/internal/store/src/user/store.ts b/packages/internal/store/src/user/store.ts index 89b8384b6..fe7374df2 100644 --- a/packages/internal/store/src/user/store.ts +++ b/packages/internal/store/src/user/store.ts @@ -3,7 +3,6 @@ import type { UserSchema } from "@follow/database/schemas/types" import { UserService } from "@follow/database/services/user" import type { AuthSession } from "@follow/shared/hono" import { create, indexedResolver, windowScheduler } from "@yornaath/batshit" -import { nanoid } from "nanoid" import { apiClient, authClient } from "../context" import type { Hydratable, Resetable } from "../internal/base" @@ -67,11 +66,9 @@ class UserSyncService { }) async whoami() { - const res = (await (apiClient()["better-auth"] as any)["get-session"].$get({ - query: { - v: nanoid(8), - }, - })) as AuthSession | null + const res = (await (apiClient()["better-auth"] as any)[ + "get-session" + ].$get()) as AuthSession | null if (res) { const user = honoMorph.toUser(res.user, true) immerSet((state) => { From 3151a1a8cefd7ae106c0b698850749834b7f12a0 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 18:16:18 +0800 Subject: [PATCH 06/10] feat: add fetch cache no-store and header cache-control no-store --- apps/desktop/layer/main/src/lib/api-client.ts | 1 + apps/desktop/layer/renderer/src/lib/api-fetch.ts | 6 ++---- apps/mobile/src/lib/api-fetch.ts | 6 ++---- apps/mobile/src/lib/auth.ts | 1 + apps/ssr/client/lib/api-fetch.ts | 1 + apps/ssr/client/lib/auth.ts | 1 + apps/ssr/src/lib/api-client.ts | 1 + packages/internal/shared/package.json | 1 - packages/internal/shared/src/auth.ts | 11 +---------- packages/internal/store/package.json | 1 - packages/internal/utils/src/headers.ts | 7 +++++++ pnpm-lock.yaml | 6 ------ 12 files changed, 17 insertions(+), 26 deletions(-) diff --git a/apps/desktop/layer/main/src/lib/api-client.ts b/apps/desktop/layer/main/src/lib/api-client.ts index 41ae4c22d..f52514d03 100644 --- a/apps/desktop/layer/main/src/lib/api-client.ts +++ b/apps/desktop/layer/main/src/lib/api-client.ts @@ -16,6 +16,7 @@ const apiFetch = ofetch.create({ credentials: "include", signal: abortController.signal, retry: false, + cache: "no-store", onRequest({ request }) { logger.info(`API Request: ${request.toString()}`) }, diff --git a/apps/desktop/layer/renderer/src/lib/api-fetch.ts b/apps/desktop/layer/renderer/src/lib/api-fetch.ts index b862302b4..c48ce9961 100644 --- a/apps/desktop/layer/renderer/src/lib/api-fetch.ts +++ b/apps/desktop/layer/renderer/src/lib/api-fetch.ts @@ -20,6 +20,7 @@ export const apiFetch = ofetch.create({ baseURL: env.VITE_API_URL, credentials: "include", retry: false, + cache: "no-store", onRequest: ({ options }) => { const header = new Headers(options.headers) @@ -85,10 +86,7 @@ export const apiFetch = ofetch.create({ export const apiClient = hc(env.VITE_API_URL, { fetch: async (input, options = {}) => - apiFetch(input.toString(), { - ...options, - cache: "no-store", - }).catch((err) => { + apiFetch(input.toString(), options).catch((err) => { if (err instanceof FetchError && !err.response) { setApiStatus(NetworkStatus.OFFLINE) } diff --git a/apps/mobile/src/lib/api-fetch.ts b/apps/mobile/src/lib/api-fetch.ts index 91dc48337..5dd8af8a8 100644 --- a/apps/mobile/src/lib/api-fetch.ts +++ b/apps/mobile/src/lib/api-fetch.ts @@ -19,6 +19,7 @@ export const apiFetch = ofetch.create({ retry: false, credentials: "omit", baseURL: proxyEnv.API_URL, + cache: "no-store", onRequest: async (ctx) => { const { options, request } = ctx if (__DEV__) { @@ -78,10 +79,7 @@ export const apiFetch = ofetch.create({ export const apiClient = hc(proxyEnv.API_URL, { fetch: async (input: any, options = {}) => - apiFetch(input.toString(), { - ...options, - cache: "no-store", - }).catch((err) => { + apiFetch(input.toString(), options).catch((err) => { throw err }), async headers() { diff --git a/apps/mobile/src/lib/auth.ts b/apps/mobile/src/lib/auth.ts index 8ecda4cfb..64053ac16 100644 --- a/apps/mobile/src/lib/auth.ts +++ b/apps/mobile/src/lib/auth.ts @@ -49,6 +49,7 @@ const plugins = [ export const authClient = createAuthClient({ baseURL: `${proxyEnv.API_URL}/better-auth`, fetchOptions: { + cache: "no-store", // Learn more: https://better-fetch.vercel.app/docs/hooks onRequest: async (ctx) => { const headers = createMobileAPIHeaders({ diff --git a/apps/ssr/client/lib/api-fetch.ts b/apps/ssr/client/lib/api-fetch.ts index 591aaf2aa..70e35481e 100644 --- a/apps/ssr/client/lib/api-fetch.ts +++ b/apps/ssr/client/lib/api-fetch.ts @@ -9,6 +9,7 @@ import PKG from "../../../desktop/package.json" const apiFetch = ofetch.create({ credentials: "include", retry: false, + cache: "no-store", onRequest: ({ options }) => { const header = new Headers(options.headers) diff --git a/apps/ssr/client/lib/auth.ts b/apps/ssr/client/lib/auth.ts index 1b1925db0..3f74cafda 100644 --- a/apps/ssr/client/lib/auth.ts +++ b/apps/ssr/client/lib/auth.ts @@ -11,6 +11,7 @@ const auth = new Auth({ webURL: env.VITE_WEB_URL, fetchOptions: { headers, + cache: "no-store", }, }) diff --git a/apps/ssr/src/lib/api-client.ts b/apps/ssr/src/lib/api-client.ts index cde108142..62c0205e8 100644 --- a/apps/ssr/src/lib/api-client.ts +++ b/apps/ssr/src/lib/api-client.ts @@ -33,6 +33,7 @@ export const createApiFetch = () => { return ofetch.create({ credentials: "include", retry: false, + cache: "no-store", onRequest(context) { if (__DEV__) console.info(`request: ${context.request}`) diff --git a/packages/internal/shared/package.json b/packages/internal/shared/package.json index 2d100ece6..58befecbc 100644 --- a/packages/internal/shared/package.json +++ b/packages/internal/shared/package.json @@ -40,7 +40,6 @@ "better-auth": "1.2.9", "drizzle-orm": "0.44.2", "hono": "4.8.1", - "nanoid": "5.1.5", "sonner": "2.0.6", "stripe": "18.2.1", "zod": "3.25.75" diff --git a/packages/internal/shared/src/auth.ts b/packages/internal/shared/src/auth.ts index a94dd1df4..49479f2ec 100644 --- a/packages/internal/shared/src/auth.ts +++ b/packages/internal/shared/src/auth.ts @@ -4,7 +4,6 @@ import type { authPlugins } from "@follow/shared/hono" import type { BetterAuthClientPlugin, BetterFetchOption } from "better-auth/client" import { inferAdditionalFields, twoFactorClient } from "better-auth/client/plugins" import { createAuthClient } from "better-auth/react" -import { nanoid } from "nanoid" type AuthPlugin = (typeof authPlugins)[number] export const baseAuthPlugins = [ @@ -58,21 +57,13 @@ export class Auth { plugins: baseAuthPlugins, fetchOptions: { ...this.options.fetchOptions, - + cache: "no-store", onRequest: (context) => { const referralCode = localStorage.getItem(getStorageNS("referral-code")) if (referralCode) { context.headers.set("folo-referral-code", referralCode) } - if (context.query) { - context.query.v = nanoid(8) - } else { - context.query = { - v: nanoid(8), - } - } - this.options.fetchOptions?.onRequest?.(context) return context diff --git a/packages/internal/store/package.json b/packages/internal/store/package.json index c7aa67227..dbbf4a267 100644 --- a/packages/internal/store/package.json +++ b/packages/internal/store/package.json @@ -124,7 +124,6 @@ "@tanstack/react-query": "5.81.5", "es-toolkit": "1.39.6", "immer": "10.1.1", - "nanoid": "5.1.5", "zustand": "5.0.6" } } diff --git a/packages/internal/utils/src/headers.ts b/packages/internal/utils/src/headers.ts index e7c1b3ce1..8e86a4a7b 100644 --- a/packages/internal/utils/src/headers.ts +++ b/packages/internal/utils/src/headers.ts @@ -50,6 +50,10 @@ export const createBuildSafeHeaders = return headers } +const commonHeaders = { + "Cache-Control": "no-store", +} + enum DesktopPlatform { Desktop = "desktop", DesktopWeb = "desktop/web", @@ -92,6 +96,7 @@ export const createDesktopAPIHeaders = ({ version }: { version: string }) => { } return { + ...commonHeaders, ...(platform ? { "X-App-Platform": platform } : {}), "X-App-Name": "Folo Web", "X-App-Version": version, @@ -105,6 +110,7 @@ enum SSRPlatform { export const createSSRAPIHeaders = ({ version }: { version: string }) => { return { + ...commonHeaders, "X-App-Platform": SSRPlatform.SSR, "X-App-Name": "Folo SSR", "X-App-Version": version, @@ -148,6 +154,7 @@ export const createMobileAPIHeaders = ({ } return { + ...commonHeaders, ...(platform ? { "X-App-Platform": platform } : {}), "X-App-Name": "Folo Mobile", "X-App-Version": version, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index db7b63848..62be38d94 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1697,9 +1697,6 @@ importers: hono: specifier: 4.8.1 version: 4.8.1(patch_hash=5c74c2d2afaa5880c13d75458dd26c84da568851691b1fb6de6d877c29936d05) - nanoid: - specifier: 5.1.5 - version: 5.1.5 sonner: specifier: 2.0.6 version: 2.0.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -1742,9 +1739,6 @@ importers: immer: specifier: 10.1.1 version: 10.1.1(patch_hash=594c60b929bc0a3b56576f1a1787da1aec2a1fba51e3c21ec09c0ed38280af6c) - nanoid: - specifier: 5.1.5 - version: 5.1.5 react: specifier: 19.0.0 version: 19.0.0 From c3a211f1c45e3f70720baca883aa13648daca71b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 21:31:35 +0800 Subject: [PATCH 07/10] docs: update changelog --- apps/mobile/changelog/0.2.3.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/mobile/changelog/0.2.3.md b/apps/mobile/changelog/0.2.3.md index 214b4b301..f31002483 100644 --- a/apps/mobile/changelog/0.2.3.md +++ b/apps/mobile/changelog/0.2.3.md @@ -2,10 +2,22 @@ ## Shiny new things +- Tap an image to open it in a zoomable lightbox (#3995) +- Added Android adaptive-icon support (#4058) + ## Improvements +- Smoother selection menus on Android (#4010) +- Faster unread-indicator animation when switching views (86d75b9) +- Extra vertical spacing in Images and Videos views (66591e4) +- Introduced an imperative modal on Android (#4041) +- Quicker copying of AI summaries (63d3df5) +- Videos no longer auto-play (79c9b05) + ## No longer broken +- Fixed a crash caused by certain image blurhashes (ef40845) + ## Thanks -Special thanks to volunteer contributors @ for their valuable contributions +Special thanks to volunteer contributors @ericyzhu @cscnk52 @kovsu @Fatpandac @dai @LitoMore @kira-offgrid @AkaShark @RtYkk for their valuable contributions From 4c8a174eef9407f6f06e10f8c87ab92360582451 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 22:00:20 +0800 Subject: [PATCH 08/10] fix: ios image fuzzy --- .../ImageViewing/components/ImageItem/ImageItem.ios.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx index 4f6327020..1f92abdfd 100644 --- a/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx +++ b/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx @@ -229,7 +229,7 @@ const ImageItem = ({ // Workaround for a bug where the image doesn't retrieve the cache on iOS // Remove this when updated to Expo // Learn more https://github.com/expo/expo/issues/37705 - blurRadius={0.001} + // blurRadius={0.001} onLoad={ hasLoaded ? undefined From f8ecaab2b9190111bc672f70c55f2f61d2615597 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Jul 2025 22:04:57 +0800 Subject: [PATCH 09/10] fix: adjust blurRadius for iOS image rendering --- .../ImageViewing/components/ImageItem/ImageItem.ios.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx index 1f92abdfd..9a7642400 100644 --- a/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx +++ b/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx @@ -229,7 +229,7 @@ const ImageItem = ({ // Workaround for a bug where the image doesn't retrieve the cache on iOS // Remove this when updated to Expo // Learn more https://github.com/expo/expo/issues/37705 - // blurRadius={0.001} + blurRadius={0.000000000001} onLoad={ hasLoaded ? undefined From 56a7593586a606e8ec08b674400e505b46fb5616 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 11 Jul 2025 22:08:43 +0800 Subject: [PATCH 10/10] chore: update expo-image package to version 2.3.2 and remove iOS image loading workaround Signed-off-by: Innei --- apps/mobile/package.json | 2 +- .../components/ImageItem/ImageItem.ios.tsx | 4 ---- pnpm-lock.yaml | 10 +++++----- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 2a4e4b75e..6f0baedf8 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -67,7 +67,7 @@ "expo-file-system": "18.1.10", "expo-haptics": "14.1.4", "expo-iap": "2.5.0", - "expo-image": "2.3.0", + "expo-image": "2.3.2", "expo-image-manipulator": "13.1.7", "expo-image-picker": "~16.1.4", "expo-linear-gradient": "14.1.5", diff --git a/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx index 9a7642400..790cc1aaf 100644 --- a/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx +++ b/apps/mobile/src/components/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx @@ -226,10 +226,6 @@ const ImageItem = ({ enableLiveTextInteraction={showControls && !scaled} accessibilityIgnoresInvertColors priority="high" - // Workaround for a bug where the image doesn't retrieve the cache on iOS - // Remove this when updated to Expo - // Learn more https://github.com/expo/expo/issues/37705 - blurRadius={0.000000000001} onLoad={ hasLoaded ? undefined diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62be38d94..255b454f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -887,8 +887,8 @@ importers: specifier: 2.5.0 version: 2.5.0(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0) expo-image: - specifier: 2.3.0 - version: 2.3.0(patch_hash=2b9c83844cf8c4240bda8315b7bbe20908929272eca362f1b7f52728071ae446)(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native-web@0.20.0(encoding@0.1.13)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0) + specifier: 2.3.2 + version: 2.3.2(patch_hash=2b9c83844cf8c4240bda8315b7bbe20908929272eca362f1b7f52728071ae446)(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native-web@0.20.0(encoding@0.1.13)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0) expo-image-manipulator: specifier: 13.1.7 version: 13.1.7(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0)) @@ -9311,8 +9311,8 @@ packages: peerDependencies: expo: '*' - expo-image@2.3.0: - resolution: {integrity: sha512-muL8OSbgCskQJsyqenKPNULWXwRm5BY2ruS6WMo/EzFyI3iXI/0mXgb2J/NXUa8xCEYxSyoGkGZFyCBvGY1ofA==} + expo-image@2.3.2: + resolution: {integrity: sha512-TOp7UR1mzeCxzs3c/6MV2Wy7jBfJpKq8aVC06gkLfxHsCVMeGqCXc+6GMrGIVrjG938LEub4dwnrE0OuSE2Qwg==} peerDependencies: expo: '*' react: 19.0.0 @@ -25007,7 +25007,7 @@ snapshots: expo: 53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0) expo-image-loader: 5.1.0(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0)) - expo-image@2.3.0(patch_hash=2b9c83844cf8c4240bda8315b7bbe20908929272eca362f1b7f52728071ae446)(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native-web@0.20.0(encoding@0.1.13)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0): + expo-image@2.3.2(patch_hash=2b9c83844cf8c4240bda8315b7bbe20908929272eca362f1b7f52728071ae446)(expo@53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native-web@0.20.0(encoding@0.1.13)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0): dependencies: expo: 53.0.12(@babel/core@7.28.0)(@expo/metro-runtime@5.0.4(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.1(@babel/core@7.28.0)(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0) react: 19.0.0