{"action":"created","issue":{"url":"https://api.github.com/repos/michaelcontento/redux-storage/issues/106","repository_url":"https://api.github.com/repos/michaelcontento/redux-storage","labels_url":"https://api.github.com/repos/michaelcontento/redux-storage/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/michaelcontento/redux-storage/issues/106/comments","events_url":"https://api.github.com/repos/michaelcontento/redux-storage/issues/106/events","html_url":"https://github.com/michaelcontento/redux-storage/issues/106","id":137976959,"number":106,"title":"Uncaught (in promise) TypeError: store.dispatch is not a function createLoader.js:12","user":{"login":"rkmax","id":395707,"avatar_url":"https://avatars.githubusercontent.com/u/395707?v=3","gravatar_id":"","url":"https://api.github.com/users/rkmax","html_url":"https://github.com/rkmax","followers_url":"https://api.github.com/users/rkmax/followers","following_url":"https://api.github.com/users/rkmax/following{/other_user}","gists_url":"https://api.github.com/users/rkmax/gists{/gist_id}","starred_url":"https://api.github.com/users/rkmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkmax/subscriptions","organizations_url":"https://api.github.com/users/rkmax/orgs","repos_url":"https://api.github.com/users/rkmax/repos","events_url":"https://api.github.com/users/rkmax/events{/privacy}","received_events_url":"https://api.github.com/users/rkmax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T20:02:20Z","updated_at":"2016-03-03T13:59:08Z","closed_at":"2016-03-03T07:55:37Z","body":"I just started to use it\r\n\r\n```js\r\nimport thunk from 'redux-thunk'\r\nimport * as storage from 'redux-storage'\r\nimport createEngine from 'redux-storage-engine-localstorage'\r\n\r\nlet storageMiddleware = storage.createMiddleware(engine)\r\nlet middleware = applyMiddleware(storageMiddleware, thunk)\r\n\r\nconst appReducer = storage.reducer(combineReducer({...}))\r\n\r\nconst store = middleware(createStore)(appReducer, {})\r\n\r\nconst load = storage.createLoader(engine)\r\nload(storage).then(() => console.log('[storage] loaded'))\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/michaelcontento/redux-storage/issues/comments/191771433","html_url":"https://github.com/michaelcontento/redux-storage/issues/106#issuecomment-191771433","issue_url":"https://api.github.com/repos/michaelcontento/redux-storage/issues/106","id":191771433,"user":{"login":"rkmax","id":395707,"avatar_url":"https://avatars.githubusercontent.com/u/395707?v=3","gravatar_id":"","url":"https://api.github.com/users/rkmax","html_url":"https://github.com/rkmax","followers_url":"https://api.github.com/users/rkmax/followers","following_url":"https://api.github.com/users/rkmax/following{/other_user}","gists_url":"https://api.github.com/users/rkmax/gists{/gist_id}","starred_url":"https://api.github.com/users/rkmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkmax/subscriptions","organizations_url":"https://api.github.com/users/rkmax/orgs","repos_url":"https://api.github.com/users/rkmax/repos","events_url":"https://api.github.com/users/rkmax/events{/privacy}","received_events_url":"https://api.github.com/users/rkmax/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T13:59:08Z","updated_at":"2016-03-03T13:59:08Z","body":"thanks! @michaelcontento "}}