#re-rendering problem using useMutation

2 messages · Page 1 of 1 (latest)

hallow loom
#

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

cunning portal
#

Not sure I follow. If you call setState the component rerenders. That's how react works...