import { createStore } from 'redux' ; import type { Store } from 'redux' ; import { globalObject } from '../utils' ; import type { TState } from './types' ; import { reducer } from './reducers' ; import { getHashInitialState } from './get-hash-initial-state' ; export let store ; if ( process . env . NODE_ENV === 'development' ) { store = createStore ( reducer , globalObject . __REDUX_DEVTOOLS_EXTENSION__ && globalObject . __REDUX_DEVTOOLS_EXTENSION__ ( ) ) ; } else { store = createStore ( reducer , getHashInitialState ( ) ) ; }