My goal is to avoid invoking a method because of React.useEffect on each re-render. This happens because React thinks the stompClient variable is undef
React.useEffect
stompClient