history.listen((location) => { // page(location); });
history.listen((location) => { page(location); });
constructor(props) { super(props); const { dispatch } = this.props; history.listen((location, action) => { // clear alert on location change dispatch(alertActions.clear()); }); }
function configureScrollBehavior() { let stateStorage = new ScrollStateStorage(); _scrollBehavior = new ScrollBehavior({ addTransitionHook: _history.listen, stateStorage, getCurrentLocation: getCurrentLocationForScrollBehavior, }); }
componentDidMount() { const { dispatch } = this.props; window.addEventListener("scroll", this.handleNotificationPopupClose); history.listen((location, action) => { // clear alert on location change dispatch(alertActions.clear()); }); }
constructor(props) { super(props); this.history = createHistory(); this.history.listen(() => this.forceUpdate()); }
history.listen((location, action) => { console.log(`The current URL is ${location.pathname}${location.search}${location.hash}`); console.log(`The last navigation action was ${action}`); });
run() { this.history.listen((location) => { if (location.method === 'replaceState') return; this.render(); }); this.render(); }
export default function startNavigationListener(store) { history.listen(loc => { if (!loc.state || !loc.state.fromRedux) { store.dispatch(actions.userNavigated(loc)); } }); }
constructor(props) { super(props); history.listen((location, action) => { // clear alert on location change this.props.clearAlerts(); }); }
constructor(props) { super(props); const { dispatch } = this.props; history.listen((location, action) => { // clear alert on location change dispatch(alertActions.clear()); }); }
constructor(props) { super(props); const { dispatch } = this.props; history.listen((location, action) => { //clear alert on location change dispatch(alertActions.clear()); }); }
constructor(props) { super(props); const { dispatch } = this.props; history.listen((location, action) => { // clear alert on location change dispatch(alertActions.clear()); }); }
constructor(props) { super(props); const { dispatch } = this.props; history.listen((location, action) => { // clear alert on location change dispatch(alertActions.clear()); }); }
constructor(props) { super(props); const { dispatch } = this.props; history.listen((location, action) => { // clear alert on location change dispatch(alertActions.clear()); }); }