tangled
alpha
login
or
join now
margin.at
/
margin
87
fork
atom
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
87
fork
atom
overview
issues
4
pulls
1
pipelines
bug fix
scanash.com
1 month ago
68a1999e
8e648f47
+9
-11
2 changed files
expand all
collapse all
unified
split
web
src
routes
wrappers.tsx
views
profile
Profile.tsx
+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
13
-
return <Profile did={did} />;
13
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
82
+
setProfile(null);
83
83
+
setAnnotations([]);
84
84
+
setHighlights([]);
85
85
+
setBookmarks([]);
86
86
+
setCollections([]);
87
87
+
setActiveTab("annotations");
88
88
+
setLoading(true);
89
89
+
82
90
const loadProfile = async () => {
83
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
125
-
126
126
-
useEffect(() => {
127
127
-
setProfile(null);
128
128
-
setAnnotations([]);
129
129
-
setHighlights([]);
130
130
-
setBookmarks([]);
131
131
-
setCollections([]);
132
132
-
setActiveTab("annotations");
133
133
-
}, [did]);
134
132
135
133
useEffect(() => {
136
134
const loadTabContent = async () => {