How to update the router state on history.replace in react router?
What version of the router is it? In History API, and when I've used it, the first parameter is the pathname (without object, just the string), and the second parameter is the state.
Try history.replace({ pathname: 'home', search: '?query=abc', state:{isActive: true}});