Omit from constraint for profile shadow
This commit is contained in:
Vendored
+1
-1
@@ -35,7 +35,7 @@ const shadows: WeakMap<
|
||||
const emitter = new EventEmitter()
|
||||
|
||||
export function useProfileShadow<
|
||||
TProfileView extends AppBskyActorDefs.ProfileView,
|
||||
TProfileView extends Omit<AppBskyActorDefs.ProfileView, '$type'>,
|
||||
>(profile: TProfileView): Shadow<TProfileView> {
|
||||
const [shadow, setShadow] = useState(() => shadows.get(profile))
|
||||
const [prevPost, setPrevPost] = useState(profile)
|
||||
|
||||
Reference in New Issue
Block a user