Version
3.2.0-beta.1
Reproduction link
https://github.com/AlexandreBonaventure/vue3.2-bug
https://codesandbox.io/s/funny-monad-3sgle

Steps to reproduce
Click on 'Go to Route A' then on 'Go to Route B' and observe the error thrown in the console
What is expected?
It should not throw any error and switch route correctly (works with vue<3.2)
What is actually happening?
Error