forceRefresh prop

The forceRefresh prop is a Boolean prop, and when set to true, navigation to any route will result in a page refresh—instead of updating specific sections of the page, the entire page is reloaded:

<BrowserRouter forceRefresh={true}>    <Link to="/dashboard">Dashboard</Link></BrowserRouter>

When you click on the navigation link Dashboard, you'll notice that the page reloads when requesting for the URL path /dashboard.

Get React Router Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.