Archives : September-2018

I am trying to reload onto the same route without having to refresh the page. For this specific case, using history.pushState(), but I’m getting an error: TypeError: history.pushState is not a function. Here is my code: import React from ‘react’; import PropTypes from ‘prop-types’; import { Container } from ‘kawax-js’; import { Switch, Route } ..

Read more

I’m looking for a way to modify the page title when React-Router v4+ changes locations. I used to listen for a location change action in Redux and check that route against a metaData object. When using React-Router v4+, there’s no fixed routes list. In fact, various components around the site could use Route with the ..

Read more