Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments

bug fix

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