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•2y ago
Not sure I follow. If you call setState the component rerenders. That's how react works...
eastern-cyanOP•2y ago
yes got it
got confused due to unwanted rendering
thanks