Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[APP-1819] fix progress guide flash and extra gap (#9960)

authored by

Spence Pope and committed by
GitHub
576761a6 8a1f8997

+11 -3
+11 -3
src/components/ProgressGuide/List.tsx
··· 1 - import {useState} from 'react' 1 + import {useEffect, useState} from 'react' 2 2 import { 3 3 type LayoutChangeEvent, 4 4 type StyleProp, ··· 43 43 44 44 const actualFollowsCount = follows?.pages?.[0]?.follows?.length ?? 0 45 45 46 - // Hide if user already follows 10+ people 47 - if (guide?.guide === 'follow-10' && actualFollowsCount >= TOTAL_AVATARS) { 46 + // Clear stale guide if user already follows 10+ people 47 + const shouldEndGuide = 48 + guide?.guide === 'follow-10' && actualFollowsCount >= TOTAL_AVATARS 49 + useEffect(() => { 50 + if (shouldEndGuide) { 51 + endProgressGuide() 52 + } 53 + }, [shouldEndGuide, endProgressGuide]) 54 + 55 + if (shouldEndGuide) { 48 56 return null 49 57 } 50 58