{"action":"created","issue":{"url":"https://api.github.com/repos/pubkey/rxdb/issues/542","repository_url":"https://api.github.com/repos/pubkey/rxdb","labels_url":"https://api.github.com/repos/pubkey/rxdb/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/pubkey/rxdb/issues/542/comments","events_url":"https://api.github.com/repos/pubkey/rxdb/issues/542/events","html_url":"https://github.com/pubkey/rxdb/issues/542","id":301966589,"node_id":"MDU6SXNzdWUzMDE5NjY1ODk=","number":542,"title":"QueryChangeDetection runs outside of the Angular Zone","user":{"login":"DerekTBrown","id":6845676,"node_id":"MDQ6VXNlcjY4NDU2NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/6845676?v=4","gravatar_id":"","url":"https://api.github.com/users/DerekTBrown","html_url":"https://github.com/DerekTBrown","followers_url":"https://api.github.com/users/DerekTBrown/followers","following_url":"https://api.github.com/users/DerekTBrown/following{/other_user}","gists_url":"https://api.github.com/users/DerekTBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/DerekTBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerekTBrown/subscriptions","organizations_url":"https://api.github.com/users/DerekTBrown/orgs","repos_url":"https://api.github.com/users/DerekTBrown/repos","events_url":"https://api.github.com/users/DerekTBrown/events{/privacy}","received_events_url":"https://api.github.com/users/DerekTBrown/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-03-03T04:11:01Z","updated_at":"2018-11-15T07:14:21Z","closed_at":"2018-04-19T09:14:01Z","author_association":"NONE","body":"## Case\r\nBug Request\r\n\r\n## Issue\r\nQueryChangeDetection produces Observables which are outside of the NgZone, so change detection will not work.\r\n\r\n## Info\r\n  - Environment: Browser\r\n  - Adapter: IndexedDB\r\n  - Stack: Typescript/Angular2+\r\n\r\n## Code\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pubkey/rxdb/issues/comments/438941096","html_url":"https://github.com/pubkey/rxdb/issues/542#issuecomment-438941096","issue_url":"https://api.github.com/repos/pubkey/rxdb/issues/542","id":438941096,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODk0MTA5Ng==","user":{"login":"pubkey","id":8926560,"node_id":"MDQ6VXNlcjg5MjY1NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/8926560?v=4","gravatar_id":"","url":"https://api.github.com/users/pubkey","html_url":"https://github.com/pubkey","followers_url":"https://api.github.com/users/pubkey/followers","following_url":"https://api.github.com/users/pubkey/following{/other_user}","gists_url":"https://api.github.com/users/pubkey/gists{/gist_id}","starred_url":"https://api.github.com/users/pubkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubkey/subscriptions","organizations_url":"https://api.github.com/users/pubkey/orgs","repos_url":"https://api.github.com/users/pubkey/repos","events_url":"https://api.github.com/users/pubkey/events{/privacy}","received_events_url":"https://api.github.com/users/pubkey/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T07:14:21Z","updated_at":"2018-11-15T07:14:21Z","author_association":"OWNER","body":"Hi @agibalov \r\nI tried many things to let the angular-zone know when rxdb queries emit new results.\r\nIt does not work by default because the RxQuery runs outside of the zone due to it's caching behavior.\r\nWhat worked best for me was to use an own async-pipe which automatically runs `detectChanges` on new emits. [See here](https://github.com/pubkey/rxdb/blob/master/examples/angular2/app/src/pipes/async-no-zone.pipe.ts)"}}
{"actor":{"display_login":"pubkey"}}