We have table structure , where each row is component and we have state in parent component , whenever I am editing it, it re-renders the entire table even though we have already used useMemo() to prevent unnecessary re renders . While it gets re rendered , it is getting automatically change to initial state. I want solution to prevent this multiple re renders on each edit.
P.s: We can't shift state from parent to child as it is complex.
We have table structure , where each row is component and we have state in parent component , whenever I am editing it, it re-renders the entire table even though we have already used useMemo() to prevent unnecessary re renders . While it gets re rendered , it is getting automatically change to initial state. I want solution to prevent this multiple re renders on each edit.
P.s: We can't shift state from parent to child as it is complex.