tangled
alpha
login
or
join now
margin.at
/
margin
88
fork
atom
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
88
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
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(() => {
0
0
0
0
0
0
0
0
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 () => {
0
91
try {
92
const marginPromise = getProfile(did);
93
const bskyPromise = fetch(
···
129
useEffect(() => {
130
loadPreferences();
131
}, []);
0
0
0
0
0
0
0
0
0
132
133
useEffect(() => {
134
const loadTabContent = async () => {