want to do dispatch.then(...)

Viewed 34274

I use redux, react-redux, react-router, and react-router-redux, and redux-thunk.

import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import { browserHistory } from 'react-router'
import { routerMiddleware } from 'react-router-redux'
import  thunkMiddleware from 'redux-thunk'
...    
const reduxRouterMiddleware = routerMiddleware( browserHistory )

const store = createStore(
    mainReducer,
    applyMiddleware(reduxRouterMiddleware, thunkMiddleware)
)

I was hoping as a result to be able to do thenable dispatch

dispatch(...).then()

but I get the message that then is not a function of dispatch.

How can I accomplish this?

1 Answers
Related