Usehistory forcerefresh
<BrowserRouter forceRefresh={true}> <Link to="/dashboard">Dashboard</Link></BrowserRouter>
Unsightly Unicorn
<BrowserRouter forceRefresh={true}> <Link to="/dashboard">Dashboard</Link></BrowserRouter>