3

I have 2 routes in my app: / and /about. If a user first visits / and then navigates to /about then no special behaviour is required. However they refresh the page when on /about, or if the initial visit is to /about then I need to detect this and do something.

How can I do this? Do I need to createHistory first?

https://reach.tech/router/api/createHistory

Evanss
  • 23,390
  • 94
  • 282
  • 505

0 Answers0