perf(post): load post components conditionally

This commit is contained in:
plebeius.eth
2024-05-16 23:17:10 +02:00
parent 07e4e5a71f
commit 50df786a86
3 changed files with 75 additions and 80 deletions
-1
View File
@@ -5,7 +5,6 @@ import useWindowWidth from '../../hooks/use-window-width';
import styles from './post.module.css';
import PostDesktop from './post-desktop';
import PostMobile from './post-mobile';
import _ from 'lodash';
export interface PostProps {
index?: number;