supasate/connected-react-router

BrowserHistoryOptions does not contain base name

gregryork opened this issue · 1 comments

The example given in the FAQ for configuring the router does not work as base name is not part of BrowserHistoryOptions. This used to work in older versions of connected-react-router, as I copied this line from a project from a few months ago.

export const history = createBrowserHistory({ basename: process.env.PUBLIC_URL, });

Looks like it's been removed in "history", so the correct code is now

export const history = createBrowserHistory();