(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol. margin.at
extension web atproto comments
98
fork

Configure Feed

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

bug fix

scanash00 68a1999e 8e648f47

+9 -11
+1 -1
web/src/routes/wrappers.tsx
··· 10 10 export function ProfileWrapper() { 11 11 const { did } = useParams(); 12 12 if (!did) return <Navigate to="/home" replace />; 13 - return <Profile did={did} />; 13 + return <Profile key={did} did={did} />; 14 14 } 15 15 16 16 export function SelfProfileWrapper() {
+8 -10
web/src/views/profile/Profile.tsx
··· 79 79 }; 80 80 81 81 useEffect(() => { 82 + setProfile(null); 83 + setAnnotations([]); 84 + setHighlights([]); 85 + setBookmarks([]); 86 + setCollections([]); 87 + setActiveTab("annotations"); 88 + setLoading(true); 89 + 82 90 const loadProfile = async () => { 83 - setLoading(true); 84 91 try { 85 92 const marginPromise = getProfile(did); 86 93 const bskyPromise = fetch( ··· 122 129 useEffect(() => { 123 130 loadPreferences(); 124 131 }, []); 125 - 126 - useEffect(() => { 127 - setProfile(null); 128 - setAnnotations([]); 129 - setHighlights([]); 130 - setBookmarks([]); 131 - setCollections([]); 132 - setActiveTab("annotations"); 133 - }, [did]); 134 132 135 133 useEffect(() => { 136 134 const loadTabContent = async () => {