@sample-stack/counter-module-browser
Version:
Sample core for higher packages to depend on
9 lines (8 loc) • 588 B
JavaScript
import {ofType}from'redux-observable';import {tap,map}from'rxjs/operators/index.js';import {LOCATION_CHANGE}from'@common-stack/remix-router-redux';// Assuming LOCATION_CHANGE action type and a dummy action creator for demonstration
// const LOCATION_CHANGE = 'LOCATION_CHANGE';
const dummyAction = () => ({
type: 'DUMMY_ACTION'
});
const locationChangeEpic = action$ => action$.pipe(ofType(LOCATION_CHANGE), tap(() => console.log('Location changed!')),
// Side effect: logging to the console
map(() => dummyAction()));export{locationChangeEpic};//# sourceMappingURL=locationEpic.js.map