DEV Community

Meenal Aggarwal
Meenal Aggarwal

Posted on

React Memo custom fn return true, but still rerenders

Parent component is being rerender couple of time. In child component used memo with custom comparison to avoid rerendering. But even after return true through custom comparison child component still gets rendered.

Top comments (1)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series