UNPKG

fb-test-module

Version:

How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act

20 lines (19 loc) 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const immutable_1 = require("immutable"); const BaseType_1 = require("../BaseType"); const Type_1 = require("./Type"); const BaseReducer_1 = require("../BaseReducer"); const initialState = immutable_1.fromJS({ status: BaseType_1.Status.Default, error: undefined }); exports.sessionReducer = (state = initialState, action) => { switch (action.type) { case Type_1.REMOVE_SESSION: return initialState; default: return BaseReducer_1.baseReducer(state, action, Type_1.SESSION_ENTITY); } ; };