Skip to content

Commit

Permalink
don't update to redux toolkit in this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Nov 30, 2023
1 parent ac5a62a commit 17e3134
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions examples/custom-map-style/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import {combineReducers, applyMiddleware} from 'redux';
import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
import keplerGlReducer, {enhanceReduxMiddleware} from '@kepler.gl/reducers';
import { configureStore } from '@reduxjs/toolkit';
import { StoreEnhancer } from 'redux';

const mapStyles = {
voyager: {
Expand Down Expand Up @@ -66,16 +64,11 @@ const customizedKeplerGlReducer = keplerGlReducer.initialState({
}
});

const reducers = combineReducers({
keplerGl: customizedKeplerGlReducer
});

const middlewares = enhanceReduxMiddleware([]);
const enhancers: StoreEnhancer[] = [applyMiddleware(...middlewares)];


const store = configureStore({
reducer: {
keplerGl: customizedKeplerGlReducer
},
enhancers: enhancers
});
const enhancers = [applyMiddleware(...middlewares)];

export default store;
export default createStore(reducers, {}, compose(...enhancers));

0 comments on commit 17e3134

Please sign in to comment.