From 0caa64684dec88c1d23daad41d61035f00f2ba71 Mon Sep 17 00:00:00 2001 From: Alex Schenkman Date: Thu, 10 Sep 2015 12:19:27 +0200 Subject: [PATCH] Added missing thunk import. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6f90a5d7..1f2d495f 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ A live-editing time travel environment for [Redux](https://github.com/rackt/redu ``` npm install --save-dev redux-devtools +npm install --save redux-thunk ``` DevTools is a [store enhancer](http://rackt.github.io/redux/docs/Glossary.html#store-enhancer), which should be added to your middleware stack *after* [`applyMiddleware`](http://rackt.github.io/redux/docs/api/applyMiddleware.html) as `applyMiddleware` is potentially asynchronous. Otherwise, DevTools won’t see the raw actions emitted by asynchronous middleware such as [redux-promise](https://github.com/acdlite/redux-promise) or [redux-thunk](https://github.com/gaearon/redux-thunk). @@ -34,6 +35,7 @@ import { compose, createStore, applyMiddleware } from 'redux'; import { devTools, persistState } from 'redux-devtools'; // React components for Redux DevTools import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; +import thunk from 'redux-thunk'; ``` Then, add `devTools` to your store enhancers, and create your store: