From e47f7a13cb76ae6e36308a715f36c64ea7469dd5 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 2 Jan 2025 10:24:00 -0600 Subject: [PATCH] Omit from constraint for profile shadow --- src/state/cache/profile-shadow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/cache/profile-shadow.ts b/src/state/cache/profile-shadow.ts index afd3f19355..e55cd48538 100644 --- a/src/state/cache/profile-shadow.ts +++ b/src/state/cache/profile-shadow.ts @@ -35,7 +35,7 @@ const shadows: WeakMap< const emitter = new EventEmitter() export function useProfileShadow< - TProfileView extends AppBskyActorDefs.ProfileView, + TProfileView extends Omit, >(profile: TProfileView): Shadow { const [shadow, setShadow] = useState(() => shadows.get(profile)) const [prevPost, setPrevPost] = useState(profile)