{"action":"created","issue":{"url":"https://api.github.com/repos/rgommezz/react-native-offline/issues/82","repository_url":"https://api.github.com/repos/rgommezz/react-native-offline","labels_url":"https://api.github.com/repos/rgommezz/react-native-offline/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/rgommezz/react-native-offline/issues/82/comments","events_url":"https://api.github.com/repos/rgommezz/react-native-offline/issues/82/events","html_url":"https://github.com/rgommezz/react-native-offline/issues/82","id":310075859,"number":82,"title":"state.network is undefined when using network reducer.","user":{"login":"haseebnaseem","id":10306624,"avatar_url":"https://avatars2.githubusercontent.com/u/10306624?v=4","gravatar_id":"","url":"https://api.github.com/users/haseebnaseem","html_url":"https://github.com/haseebnaseem","followers_url":"https://api.github.com/users/haseebnaseem/followers","following_url":"https://api.github.com/users/haseebnaseem/following{/other_user}","gists_url":"https://api.github.com/users/haseebnaseem/gists{/gist_id}","starred_url":"https://api.github.com/users/haseebnaseem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haseebnaseem/subscriptions","organizations_url":"https://api.github.com/users/haseebnaseem/orgs","repos_url":"https://api.github.com/users/haseebnaseem/repos","events_url":"https://api.github.com/users/haseebnaseem/events{/privacy}","received_events_url":"https://api.github.com/users/haseebnaseem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-30T14:11:59Z","updated_at":"2018-05-17T07:14:58Z","closed_at":null,"author_association":"NONE","body":"Reducers are defined as follows:\r\n```js\r\nimport {combineReducers} from 'redux';\r\nimport {reducer as network} from 'react-native-offline';\r\nimport * as homeReducer from './home';\r\nimport * as navReducer from './navigation';\r\nimport * as verifyReducer from './verify';\r\nimport * as feedReducer from './feed';\r\nimport * as reviewReducer from './review';\r\nexport default combineReducers(Object.assign(\r\n    navReducer,\r\n    homeReducer,\r\n    verifyReducer,\r\n    feedReducer,\r\n    reviewReducer,\r\n    network\r\n));\r\n```\r\nand in the root saga:\r\n```js\r\nfunction* rootSaga(){\r\n    ...\r\n    yield fork(networkEventsListenerSaga,{timeout:2000,checkConnectionInterval:2000});\r\n}\r\n```\r\nGetting the following error:\r\n```js\r\nuncaught at rootSaga \r\n at networkEventsListenerSaga \r\n at netInfoChangeSaga \r\n at checkInternetAccessSaga \r\n at handleConnectivityChange \r\n TypeError: Cannot read property 'actionQueue' of undefined\r\n    at http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:65357:33\r\n    at runSelectEffect (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56559:28)\r\n    at runEffect (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56315:985)\r\n    at next (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56228:9)\r\n    at currCb (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56291:7)\r\n    at http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56370:16\r\n    at exec (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56637:5)\r\n    at flush (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56665:5)\r\n    at asap (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56648:5)\r\n    at runPutEffect (http://localhost:8081/index.bundle?platform=android&dev=true&hot=false&minify=false:56358:25)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rgommezz/react-native-offline/issues/comments/389768395","html_url":"https://github.com/rgommezz/react-native-offline/issues/82#issuecomment-389768395","issue_url":"https://api.github.com/repos/rgommezz/react-native-offline/issues/82","id":389768395,"user":{"login":"victorkvarghese","id":15869386,"avatar_url":"https://avatars0.githubusercontent.com/u/15869386?v=4","gravatar_id":"","url":"https://api.github.com/users/victorkvarghese","html_url":"https://github.com/victorkvarghese","followers_url":"https://api.github.com/users/victorkvarghese/followers","following_url":"https://api.github.com/users/victorkvarghese/following{/other_user}","gists_url":"https://api.github.com/users/victorkvarghese/gists{/gist_id}","starred_url":"https://api.github.com/users/victorkvarghese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorkvarghese/subscriptions","organizations_url":"https://api.github.com/users/victorkvarghese/orgs","repos_url":"https://api.github.com/users/victorkvarghese/repos","events_url":"https://api.github.com/users/victorkvarghese/events{/privacy}","received_events_url":"https://api.github.com/users/victorkvarghese/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T07:14:58Z","updated_at":"2018-05-17T07:14:58Z","author_association":"NONE","body":"You have to do it like this\r\n```\r\n\r\nexport default combineReducers(Object.assign(\r\n    navReducer,\r\n    homeReducer,\r\n    verifyReducer,\r\n    feedReducer,\r\n    reviewReducer,\r\n    { network } \r\n));\r\n```\r\n\r\nif you are exporting all reducers separately as a const \r\n\r\nThen everything works fine"}}
{"actor":{"display_login":"victorkvarghese"}}