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?