T
TanStack2y ago
eastern-cyan

re-rendering problem using useMutation

here is the link of my sandbox example in which the component re-renders if we change any input. onchange of input I update state of that field but I don't know why it re-renders re-rendering can be seen in the console. https://6fypr2.csb.app
2 Replies
flat-fuchsia
flat-fuchsia2y ago
Not sure I follow. If you call setState the component rerenders. That's how react works...
eastern-cyan
eastern-cyanOP2y ago
yes got it got confused due to unwanted rendering thanks

Did you find this page helpful?