{"action":"opened","issue":{"url":"https://api.github.com/repos/redux-observable/redux-observable/issues/162","repository_url":"https://api.github.com/repos/redux-observable/redux-observable","labels_url":"https://api.github.com/repos/redux-observable/redux-observable/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/redux-observable/redux-observable/issues/162/comments","events_url":"https://api.github.com/repos/redux-observable/redux-observable/issues/162/events","html_url":"https://github.com/redux-observable/redux-observable/issues/162","id":196307940,"number":162,"title":"Nested Observables don't have the `ofType` operator","user":{"login":"ncuillery","id":4425455,"avatar_url":"https://avatars.githubusercontent.com/u/4425455?v=3","gravatar_id":"","url":"https://api.github.com/users/ncuillery","html_url":"https://github.com/ncuillery","followers_url":"https://api.github.com/users/ncuillery/followers","following_url":"https://api.github.com/users/ncuillery/following{/other_user}","gists_url":"https://api.github.com/users/ncuillery/gists{/gist_id}","starred_url":"https://api.github.com/users/ncuillery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncuillery/subscriptions","organizations_url":"https://api.github.com/users/ncuillery/orgs","repos_url":"https://api.github.com/users/ncuillery/repos","events_url":"https://api.github.com/users/ncuillery/events{/privacy}","received_events_url":"https://api.github.com/users/ncuillery/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-18T23:49:01Z","updated_at":"2016-12-18T23:49:01Z","closed_at":null,"body":"Some RxJS operators return an \"observable of observables\" like [window](http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html#instance-method-window). These nested Observables don't have the `.ofType` shortcut:  \r\n\r\n```javascript\r\naction$\r\n  .window(action$.ofType('UI_USER_LOGIN_START'))\r\n  .map(nested$ => {\r\n    return nested$\r\n      .ofType('UI_USER_LOGIN_FULFILLED') // Throw error \"nested$.ofType is not a function\"\r\n      .mapTo('HIDE_LOADER');\r\n  })\r\n  .mergeAll();\r\n```\r\n\r\n```javascript\r\naction$\r\n  .window(action$.ofType('UI_USER_LOGIN_START'))\r\n  .map(nested$ => {\r\n    return nested$\r\n      .filter(action => (action.type === 'UI_USER_LOGIN_FULFILLED')) // Ok\r\n      .mapTo('HIDE_LOADER');\r\n  })\r\n  .mergeAll();\r\n```\r\n\r\nDo you think there is something to do ?\r\n\r\nI use:\r\n> redux-observable 0.12.2\r\n> rxjs 5.0.0-rc.1"}}
{"actor":{"display_login":"ncuillery"}}