profiling react component body

i'm using the react profiler to try to understand why a component is expensive to render. but large parts of the time aren't accounted for in the flame graph. i guess it's component logic, hooks, etc. what's the easiest/fastest way to understand what happened in the first 54.6ms here? am i stuck with performance.mark/measure?
No description
Mediocre12d ago
You can go to the "components" tab and check what hook 10 is, and continue investigating from there. If you've tried that already or it doesn't really help then I'd suggest taking a good look at the component and seeing what could cause a re-render. I don't think there's any other way
cje12d ago
hook 10 is causing the rerender in this case, but that's not what i'm trying to find out my question is, what's happening in the first 54ms i want it to render faster, not render less
Want results from more Discord servers?
Add your server
More Posts
ai prompting doubtso i have this requirement to get the ai to reply to 3 of my questions. eg: "x is something.. 1. whHorizontal scroll bar tailwindCan someone explain why I'm getting a small horizontal scrollbar on this page (not my project) when What's your favourite chart library for dashboards?Title. Most important thing is DX tbh as it should just be implemented quickly for some basic internCan't use my OpenAI API keys in my React Native Expo app?Getting this configuration error Here is my code ```import { Configuration, OpenAIApi } from "openCan't set env variables in package.json scripts?So essentially I'm trying to run some test scripts (playwright for example) and I want to assign an Failed to compile. Entry point for implicit type library 'mime'I suddenly started getting this error message when trying to compile. The dev server works fine. I Trpc failed on post.hello after initial setupBroken after initial setup through CLI. I've attempted this with mutliple configurations and I'll alIf you SSH onto a machine from another machine, does that use less resources on your local Machine?I am wondering if I can make my local PC use less resources by SSHing into VSCode using another PC?Unnecessary API'S callI am facing a issue regarding unneccessary api calls when i switch to another tab and return to my lRegression testing React.memohi all, i have an expensive component that's memoized, and this depends on a godawful chain of useCaHandling loading and error states in T3Hi I have just started using the T3 stack and was wondering what's the best practice for handling erQuery Invalidation with trpc not working with React Server Components and App RouterHi guys, I am trying to do Optimistic updates with trpc but the problem is I am fetching data on the