render render count

This commit is contained in:
talksik
2022-05-29 15:41:16 -05:00
parent 1e03c15b4f
commit abe1a85884
5 changed files with 24 additions and 3 deletions
@@ -5,6 +5,8 @@ import useAuth from '../providers/AuthProvider';
import ConversationDetails from './ConversationDetails';
import useTerminal from './Terminal';
import { useRendersCount } from 'react-use';
export default function MainPanel() {
const { user } = useAuth();
const { selectedConversation, createConversationMode } = useTerminal();
@@ -15,6 +17,9 @@ export default function MainPanel() {
// show who is
const rendersCount = useRendersCount();
console.warn('RENDER COUNT | MAINPANEL | ', rendersCount);
const pageContent = useMemo(() => {
if (selectedConversation) return <ConversationDetails />;