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

18 lines (14 loc) 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* const sagaMiddleware = createSagaMiddleware(); const initalState = fromJS({}); const middlewares = [sagaMiddleware]; //const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const composeEnhancers = window['__REDUX_DEVTOOLS_EXTENSION_COMPOSE__'] as typeof compose || compose; const store = createStore( state, initalState!, composeEnhancers(applyMiddleware(...middlewares)) ); sagaMiddleware.run(rootSaga);*/