Skip to content

Commit

Permalink
Fix missing store in TypeScript example
Browse files Browse the repository at this point in the history
  • Loading branch information
supasate committed Jan 20, 2019
1 parent bb7574f commit 357fded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/typescript/src/configureStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions examples/typescript/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<AppContainer>
Expand Down

0 comments on commit 357fded

Please sign in to comment.