My component is performing calculation based on the result from before user performs a change, and afterwards, and for some reason, the component seems to be running the functio