Move the end parts

This commit is contained in:
Lim Chee Aun 2024-09-13 18:48:50 +08:00
parent 182a2366ec
commit 7ca71efc4c
2 changed files with 2 additions and 2 deletions

View file

@ -22,6 +22,7 @@ function Following({ title, path, id, ...props }) {
const snapStates = useSnapshot(states);
const homeIterator = useRef();
const latestItem = useRef();
__BENCHMARK.end('time-to-following');
console.debug('RENDER Following', title, id);
const supportsPixelfed = supports('@pixelfed/home-include-reblogs');
@ -100,7 +101,6 @@ function Following({ title, path, id, ...props }) {
}
useEffect(() => {
__BENCHMARK.end('time-to-following');
let sub;
(async () => {
if (streaming) {

View file

@ -27,8 +27,8 @@ import {
function Home() {
const { _ } = useLingui();
const snapStates = useSnapshot(states);
__BENCHMARK.end('time-to-home');
useEffect(() => {
__BENCHMARK.end('time-to-home');
(async () => {
const keys = await db.drafts.keys();
if (keys.length) {