{"action":"created","issue":{"url":"https://api.github.com/repos/rt2zz/redux-persist/issues/925","repository_url":"https://api.github.com/repos/rt2zz/redux-persist","labels_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/925/labels{/name}","comments_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/925/comments","events_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/925/events","html_url":"https://github.com/rt2zz/redux-persist/issues/925","id":373954502,"node_id":"MDU6SXNzdWUzNzM5NTQ1MDI=","number":925,"title":"TypeError: undefined is not an object (evaluating '_react3.PersistGate') ","user":{"login":"Arjun-Aggarwal","id":38690910,"node_id":"MDQ6VXNlcjM4NjkwOTEw","avatar_url":"https://avatars3.githubusercontent.com/u/38690910?v=4","gravatar_id":"","url":"https://api.github.com/users/Arjun-Aggarwal","html_url":"https://github.com/Arjun-Aggarwal","followers_url":"https://api.github.com/users/Arjun-Aggarwal/followers","following_url":"https://api.github.com/users/Arjun-Aggarwal/following{/other_user}","gists_url":"https://api.github.com/users/Arjun-Aggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/Arjun-Aggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arjun-Aggarwal/subscriptions","organizations_url":"https://api.github.com/users/Arjun-Aggarwal/orgs","repos_url":"https://api.github.com/users/Arjun-Aggarwal/repos","events_url":"https://api.github.com/users/Arjun-Aggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/Arjun-Aggarwal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-25T13:43:37Z","updated_at":"2018-12-03T14:56:48Z","closed_at":null,"author_association":"NONE","body":"I am trying to a use a very basic persistor, but I am getting this error: TypeError: undefined is not an object (evaluating '_react3.PersistGate')\r\nHere is my code:\r\nThis is the main app\r\n```import { store, persistor } from './redux/store';\r\nimport { Provider } from 'react-redux';\r\nimport { PersistGate } from 'redux-persist/integration/react'\r\n. . .\r\nexport default class App extends React.Component {\r\n  render() {\r\n    return (\r\n    <Provider store={store}>\r\n      <PersistGate loading={null} persistor={persistor}>\r\n        <AppNavigator />\r\n      </PersistGate>\r\n    </Provider>\r\n    );\r\n  }\r\n}\r\n```\r\nThis is the store:\r\n```\r\nimport { createStore } from 'redux';\r\nimport { addCustomer } from './actions';\r\nimport reducer from './reducer';\r\nimport { persistStore, persistReducer } from 'redux-persist';\r\nimport storage from 'redux-persist/lib/storage';\r\n\r\nconst persistConfig = {\r\n  key: 'root',\r\n  storage,\r\n};\r\n\r\nconst persistedReducer = persistReducer(persistConfig, reducer);\r\n\r\nexport const store = createStore(persistedReducer);\r\nexport const persistor = persistStore(store);\r\n\r\nstore.dispatch(addCustomer({ name: 'xyz', amount: 500 }));\r\nstore.dispatch(addCustomer({ name: 'abc', amount: 600 }));\r\nstore.dispatch(addCustomer({ name: 'pqr', amount: 600 }));\r\n```\r\nCan somebody explain where I am going wrong"},"comment":{"url":"https://api.github.com/repos/rt2zz/redux-persist/issues/comments/443738343","html_url":"https://github.com/rt2zz/redux-persist/issues/925#issuecomment-443738343","issue_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/925","id":443738343,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzczODM0Mw==","user":{"login":"iigorg","id":44832390,"node_id":"MDQ6VXNlcjQ0ODMyMzkw","avatar_url":"https://avatars0.githubusercontent.com/u/44832390?v=4","gravatar_id":"","url":"https://api.github.com/users/iigorg","html_url":"https://github.com/iigorg","followers_url":"https://api.github.com/users/iigorg/followers","following_url":"https://api.github.com/users/iigorg/following{/other_user}","gists_url":"https://api.github.com/users/iigorg/gists{/gist_id}","starred_url":"https://api.github.com/users/iigorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iigorg/subscriptions","organizations_url":"https://api.github.com/users/iigorg/orgs","repos_url":"https://api.github.com/users/iigorg/repos","events_url":"https://api.github.com/users/iigorg/events{/privacy}","received_events_url":"https://api.github.com/users/iigorg/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T14:56:48Z","updated_at":"2018-12-03T14:56:48Z","author_association":"NONE","body":"thank you very much"}}
{"actor":{"display_login":"iigorg"}}