{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/redux-devtools/issues/188","labels_url":"https://api.github.com/repos/gaearon/redux-devtools/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/redux-devtools/issues/188/comments","events_url":"https://api.github.com/repos/gaearon/redux-devtools/issues/188/events","html_url":"https://github.com/gaearon/redux-devtools/issues/188","id":116569729,"number":188,"title":"error in Promise actions when commenting devtools() middleware","user":{"login":"Raffiki","id":1446995,"avatar_url":"https://avatars.githubusercontent.com/u/1446995?v=3","gravatar_id":"","url":"https://api.github.com/users/Raffiki","html_url":"https://github.com/Raffiki","followers_url":"https://api.github.com/users/Raffiki/followers","following_url":"https://api.github.com/users/Raffiki/following{/other_user}","gists_url":"https://api.github.com/users/Raffiki/gists{/gist_id}","starred_url":"https://api.github.com/users/Raffiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raffiki/subscriptions","organizations_url":"https://api.github.com/users/Raffiki/orgs","repos_url":"https://api.github.com/users/Raffiki/repos","events_url":"https://api.github.com/users/Raffiki/events{/privacy}","received_events_url":"https://api.github.com/users/Raffiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T15:15:33Z","updated_at":"2015-11-13T08:31:19Z","closed_at":null,"body":"uncommenting `devTools()` middleware gives me a an error on `Promise` actions.\r\n\r\n```\r\nimport { createStore, compose, combineReducers, applyMiddleware } from 'redux';\r\nimport thunk from 'redux-thunk';\r\nimport createLogger from 'redux-logger';\r\nimport * as reducers from '../reducers';\r\nimport api from '../middleware/api';\r\nimport { ReduxRouter, reduxReactRouter, routerStateReducer} from 'redux-router';\r\nimport { default as createHistory } from 'history/lib/createBrowserHistory';\r\nimport { devTools } from 'redux-devtools';\r\nimport * as routes from '../routes';\r\n\r\nconst logger = createLogger();\r\nlet middleware = [thunk, api];\r\n\r\nconst finalCreateStore = compose(\r\n    reduxReactRouter({routes, createHistory}),\r\n    applyMiddleware(...middleware)\r\n    //devTools()\r\n)(createStore);\r\n\r\n```\r\n\r\nresults in an error\r\n\r\n`Uncaught Error: Actions must be plain objects. Use custom middleware for async actions.` In this case the action is a `Promise`.\r\n\r\nUncommenting the `devTools()` makes everything work again. \r\n\r\na little debugging:\r\n\r\nin the working version https://github.com/rackt/redux/blob/master/src/utils/isPlainObject.js#L21 returns true as they are both `function Object() { [native code] }`\r\n\r\nin the non-working: \r\n`fnToString(constructor)` returns `\"function Promise() { [native code] }\"`\r\n\r\nCan anyone give me insight how the `Promise` contructor is altered?\r\n\r\nversions: \r\n\r\n````\r\n    \"redux\": \"^3.0.2\",\r\n    \"redux-devtools\": \"^2.1.5\",\r\n    \"redux-router\": \"^1.0.0-beta3\",\r\n    \"redux-thunk\": \"^1.0.0\",\r\n````\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gaearon/redux-devtools/issues/comments/156361385","html_url":"https://github.com/gaearon/redux-devtools/issues/188#issuecomment-156361385","issue_url":"https://api.github.com/repos/gaearon/redux-devtools/issues/188","id":156361385,"user":{"login":"Raffiki","id":1446995,"avatar_url":"https://avatars.githubusercontent.com/u/1446995?v=3","gravatar_id":"","url":"https://api.github.com/users/Raffiki","html_url":"https://github.com/Raffiki","followers_url":"https://api.github.com/users/Raffiki/followers","following_url":"https://api.github.com/users/Raffiki/following{/other_user}","gists_url":"https://api.github.com/users/Raffiki/gists{/gist_id}","starred_url":"https://api.github.com/users/Raffiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raffiki/subscriptions","organizations_url":"https://api.github.com/users/Raffiki/orgs","repos_url":"https://api.github.com/users/Raffiki/repos","events_url":"https://api.github.com/users/Raffiki/events{/privacy}","received_events_url":"https://api.github.com/users/Raffiki/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T08:31:19Z","updated_at":"2015-11-13T08:31:19Z","body":"Sure, it's a copy of own of your examples I believe: https://gist.github.com/Raffiki/641d145078069cf41297"}}