If the props get changed only the useeffect() is calling because i\'m passing value as a second argument. But if the props get the same value also i need to call the useEffe