From a0e751e259e900ba35ea55da525aab780de8b6d2 Mon Sep 17 00:00:00 2001 From: Supasate Choochaisri Date: Sun, 20 Jan 2019 10:18:43 +0800 Subject: [PATCH] Fix missing store in TypeScript example --- examples/typescript/src/configureStore.tsx | 2 +- examples/typescript/src/index.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/typescript/src/configureStore.tsx b/examples/typescript/src/configureStore.tsx index 242e2b52..e2cd8480 100644 --- a/examples/typescript/src/configureStore.tsx +++ b/examples/typescript/src/configureStore.tsx @@ -5,7 +5,7 @@ import createRootReducer from './reducers' export const history = createBrowserHistory() -export default function configureStore(preloadedState) { +export default function configureStore(preloadedState?: any) { const composeEnhancer: typeof compose = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose const store = createStore( createRootReducer(history), diff --git a/examples/typescript/src/index.tsx b/examples/typescript/src/index.tsx index 60392fa7..1fbeb87a 100644 --- a/examples/typescript/src/index.tsx +++ b/examples/typescript/src/index.tsx @@ -5,6 +5,7 @@ import ReactDOM from 'react-dom' import App from './App' import configureStore, { history } from './configureStore' +const store = configureStore() const render = () => { ReactDOM.render(