UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

17 lines 822 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var redux_observable_1 = require("redux-observable"); var cosmoui_1 = require("cosmoui"); var actions_1 = require("../actions"); exports.fetchPlaceByIdSuccess = function (action$, store) { return action$.ofType(actions_1.FETCH_PLACE_BY_ID.SUCCESS) .map(function (action) { return actions_1.setPlaceById(action.result); }); }; exports.fetchPlaceByIdError = function (action$, store) { return action$.ofType(actions_1.FETCH_PLACE_BY_ID.ERROR) .mapTo(cosmoui_1.notificationError('There was a problem fetching the place. Please try again')); }; exports.fetchPlaceByIdEpics = redux_observable_1.combineEpics(exports.fetchPlaceByIdSuccess, exports.fetchPlaceByIdError); //# sourceMappingURL=fetch-place-by-id.js.map