this repo has no description
0
fork

Configure Feed

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

Make fetches concurrent

+5 -2
+5 -2
src/pages/status.jsx
··· 67 67 } 68 68 69 69 (async () => { 70 + const heroFetch = masto.statuses.fetch(id); 71 + const contextFetch = masto.statuses.fetchContext(id); 72 + 70 73 const hasStatus = snapStates.statuses.has(id); 71 74 let heroStatus = snapStates.statuses.get(id); 72 75 try { 73 - heroStatus = await masto.statuses.fetch(id); 76 + heroStatus = await heroFetch; 74 77 states.statuses.set(id, heroStatus); 75 78 } catch (e) { 76 79 // Silent fail if status is cached ··· 82 85 } 83 86 84 87 try { 85 - const context = await masto.statuses.fetchContext(id); 88 + const context = await contextFetch; 86 89 const { ancestors, descendants } = context; 87 90 88 91 ancestors.forEach((status) => {