2

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
  • 17,152
  • 66
  • 217
  • 397

0 Answers0