UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

29 lines (28 loc) 1.15 kB
import { KeplerGlState } from './core'; declare type KeplerGlStateMap = { [id: string]: Partial<KeplerGlState>; }; export declare function provideInitialState(initialState: any, extraReducers?: any): (state: {} | undefined, action: any) => KeplerGlStateMap; /** * Kepler.gl reducer to be mounted to your store. You can mount `keplerGlReducer` at property `keplerGl`, if you choose * to mount it at another address e.g. `foo` you will need to specify it when you mount `KeplerGl` component in your app with `getState: state => state.foo` * @public * @example * import keplerGlReducer from 'kepler.gl/reducers'; * import {createStore, combineReducers, applyMiddleware, compose} from 'redux'; * import {taskMiddleware} from 'react-palm/tasks'; * * const initialState = {}; * const reducers = combineReducers({ * // <-- mount kepler.gl reducer in your app * keplerGl: keplerGlReducer, * * // Your other reducers here * app: appReducer * }); * * // using createStore * export default createStore(reducer, initialState, applyMiddleware(taskMiddleware)); */ declare const keplerGlReducer: any; export default keplerGlReducer;