Renders Twice
Kenneth-Fernandes-0620 opened this issue · comments
Kenneth Fernandes commented
Jaaneek commented
I cant check it right now but I will give my opinion.
- Isnt this related to react strictmode, when we are using that every component will be rendered twice at mount to detect memory leaks and other side effects faster.
- Even if it is rendering the component twice, is that a problem? Can you elaborate why should we avoid it? React usually does a lot of unnecessary rerenders and common approach is to optimise it only when something is lagging.
Kenneth Fernandes commented
Thanks a lot @Jaaneek , yes this issue was related to The Strict Mode in React