this repo has no description
0
fork

Configure Feed

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

Add __STATES_STATS__ for debugging

+14
+14
src/app.jsx
··· 55 55 import './utils/toast-alert'; 56 56 57 57 window.__STATES__ = states; 58 + window.__STATES_STATS__ = () => { 59 + const keys = [ 60 + 'statuses', 61 + 'accounts', 62 + 'spoilers', 63 + 'unfurledLinks', 64 + 'statusQuotes', 65 + ]; 66 + const counts = {}; 67 + keys.forEach((key) => { 68 + counts[key] = Object.keys(states[key]).length; 69 + }); 70 + console.warn('STATE stats', counts); 71 + }; 58 72 59 73 // Preload icons 60 74 // There's probably a better way to do this