useEffect must be used carrefully, subscribing the effect to only those dependencies we are interested to. Otherwise, every re-render will trigger it.