여러 삽질을 한 결과, react-router-dom의 <Route ... />의 props인 history를 이용한 이 코드가 문제였다. 클라이언트 단에서 url을 변경한 것처럼 보이게하는 방식이기 때문에, 여기에서는 window.location.replace("/Result") 이 코드를 사용하면 함수가 작동하게 된다.
react-router-dom
<Route ... />
history
window.location.replace("/Result")