This is quite similar to this question here: How to know if react-router can go back to display back button in react app where the ask is regarding determining whether the user can go back in the app.
That answered half the question. The other half: How do I determine whether the user can move forward? I knew this could be possible with access to the history which was possible in v5, but since v6, useHistory doesn't exist anymore.
Any ideas?