{"action":"created","comment":{"url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/comments/217267912","pull_request_review_id":154938011,"id":217267912,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzI2NzkxMg==","diff_hunk":"@@ -0,0 +1,105 @@\n+import { Component, OnInit } from '@angular/core';\n+import { FormBuilder, NgForm } from '@angular/forms';\n+\n+import { takeUntil, map } from 'rxjs/operators';\n+import { Subject } from 'rxjs';\n+import { Store, select } from '@ngrx/store';\n+\n+import { ROUTE_ANIMATIONS_ELEMENTS } from '@app/core';\n+\n+import { State } from '../../examples.state';\n+import { Book } from '../books.model';\n+import {\n+  ActionBooksPersist,\n+  AddOne,\n+  DeleteOne,\n+  UpdateOne,\n+  ActionBookSelect\n+} from '../books.actions';\n+import {\n+  selectBooks,\n+  selectCurrentBook,\n+  selectAllBooks\n+} from '../books.selectors';\n+\n+@Component({\n+  selector: 'anms-crud',\n+  templateUrl: './crud.component.html',\n+  styleUrls: ['./crud.component.scss']\n+})\n+export class CrudComponent implements OnInit {\n+  private unsubscribe$: Subject<void> = new Subject<void>();\n+\n+  routeAnimationsElements = ROUTE_ANIMATIONS_ELEMENTS;\n+\n+  emptyBook: Book = {\n+    id: new Date().getUTCMilliseconds().toString(),\n+    title: '',\n+    author: '',\n+    description: ''\n+  };\n+  bookFormGroup = this.fb.group(this.emptyBook);\n+  books: Book[];\n+  selectedBook: Book | null;\n+  isEditing: boolean;\n+\n+  constructor(public store: Store<State>, public fb: FormBuilder) {}\n+\n+  ngOnInit() {\n+    this.store","path":"src/app/examples/crud/components/crud.component.ts","position":46,"original_position":49,"commit_id":"78839d5bdb2d0d6c5dffe65eb0af6bbd83e9eac5","original_commit_id":"908612ebfaab413111067008525a966b399c3f13","user":{"login":"timdeschryver","id":28659384,"node_id":"MDQ6VXNlcjI4NjU5Mzg0","avatar_url":"https://avatars1.githubusercontent.com/u/28659384?v=4","gravatar_id":"","url":"https://api.github.com/users/timdeschryver","html_url":"https://github.com/timdeschryver","followers_url":"https://api.github.com/users/timdeschryver/followers","following_url":"https://api.github.com/users/timdeschryver/following{/other_user}","gists_url":"https://api.github.com/users/timdeschryver/gists{/gist_id}","starred_url":"https://api.github.com/users/timdeschryver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdeschryver/subscriptions","organizations_url":"https://api.github.com/users/timdeschryver/orgs","repos_url":"https://api.github.com/users/timdeschryver/repos","events_url":"https://api.github.com/users/timdeschryver/events{/privacy}","received_events_url":"https://api.github.com/users/timdeschryver/received_events","type":"User","site_admin":false},"body":"I think instead of using `select` in the `tap` operator, you could use `withLatestFrom(this.store.pipe(select(selector)))`.\r\n\r\nIf this isn't the case I suppose we can solve it in a separate issue, because I think this is the way how it's currently done in every example.","created_at":"2018-09-13T06:02:53Z","updated_at":"2018-09-13T06:02:53Z","html_url":"https://github.com/tomastrajan/angular-ngrx-material-starter/pull/325#discussion_r217267912","pull_request_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/comments/217267912"},"html":{"href":"https://github.com/tomastrajan/angular-ngrx-material-starter/pull/325#discussion_r217267912"},"pull_request":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325"}},"in_reply_to_id":216391287},"pull_request":{"url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325","id":214161406,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MTYxNDA2","html_url":"https://github.com/tomastrajan/angular-ngrx-material-starter/pull/325","diff_url":"https://github.com/tomastrajan/angular-ngrx-material-starter/pull/325.diff","patch_url":"https://github.com/tomastrajan/angular-ngrx-material-starter/pull/325.patch","issue_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues/325","number":325,"state":"open","locked":false,"title":"feat(crud) : New example of CRUD functionality using @ngrx/entity #286","user":{"login":"Jeykairis","id":10895934,"node_id":"MDQ6VXNlcjEwODk1OTM0","avatar_url":"https://avatars1.githubusercontent.com/u/10895934?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeykairis","html_url":"https://github.com/Jeykairis","followers_url":"https://api.github.com/users/Jeykairis/followers","following_url":"https://api.github.com/users/Jeykairis/following{/other_user}","gists_url":"https://api.github.com/users/Jeykairis/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeykairis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeykairis/subscriptions","organizations_url":"https://api.github.com/users/Jeykairis/orgs","repos_url":"https://api.github.com/users/Jeykairis/repos","events_url":"https://api.github.com/users/Jeykairis/events{/privacy}","received_events_url":"https://api.github.com/users/Jeykairis/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-09T19:47:51Z","updated_at":"2018-09-13T06:02:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5daf099b5eb7ac33b4de19fcefa03b0c426163ff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325/commits","review_comments_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325/comments","review_comment_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues/325/comments","statuses_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/statuses/78839d5bdb2d0d6c5dffe65eb0af6bbd83e9eac5","head":{"label":"Jeykairis:crud","ref":"crud","sha":"78839d5bdb2d0d6c5dffe65eb0af6bbd83e9eac5","user":{"login":"Jeykairis","id":10895934,"node_id":"MDQ6VXNlcjEwODk1OTM0","avatar_url":"https://avatars1.githubusercontent.com/u/10895934?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeykairis","html_url":"https://github.com/Jeykairis","followers_url":"https://api.github.com/users/Jeykairis/followers","following_url":"https://api.github.com/users/Jeykairis/following{/other_user}","gists_url":"https://api.github.com/users/Jeykairis/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeykairis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeykairis/subscriptions","organizations_url":"https://api.github.com/users/Jeykairis/orgs","repos_url":"https://api.github.com/users/Jeykairis/repos","events_url":"https://api.github.com/users/Jeykairis/events{/privacy}","received_events_url":"https://api.github.com/users/Jeykairis/received_events","type":"User","site_admin":false},"repo":{"id":142911397,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI5MTEzOTc=","name":"angular-ngrx-material-starter","full_name":"Jeykairis/angular-ngrx-material-starter","owner":{"login":"Jeykairis","id":10895934,"node_id":"MDQ6VXNlcjEwODk1OTM0","avatar_url":"https://avatars1.githubusercontent.com/u/10895934?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeykairis","html_url":"https://github.com/Jeykairis","followers_url":"https://api.github.com/users/Jeykairis/followers","following_url":"https://api.github.com/users/Jeykairis/following{/other_user}","gists_url":"https://api.github.com/users/Jeykairis/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeykairis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeykairis/subscriptions","organizations_url":"https://api.github.com/users/Jeykairis/orgs","repos_url":"https://api.github.com/users/Jeykairis/repos","events_url":"https://api.github.com/users/Jeykairis/events{/privacy}","received_events_url":"https://api.github.com/users/Jeykairis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jeykairis/angular-ngrx-material-starter","description":"Angular NgRx & Angular Material Starter Project","fork":true,"url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter","forks_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/forks","keys_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/teams","hooks_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/hooks","issue_events_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/issues/events{/number}","events_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/events","assignees_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/assignees{/user}","branches_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/branches{/branch}","tags_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/tags","blobs_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/statuses/{sha}","languages_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/languages","stargazers_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/stargazers","contributors_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/contributors","subscribers_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/subscribers","subscription_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/subscription","commits_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/contents/{+path}","compare_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/merges","archive_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/downloads","issues_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/issues{/number}","pulls_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/pulls{/number}","milestones_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/milestones{/number}","notifications_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/labels{/name}","releases_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/releases{/id}","deployments_url":"https://api.github.com/repos/Jeykairis/angular-ngrx-material-starter/deployments","created_at":"2018-07-30T18:10:37Z","updated_at":"2018-08-28T18:25:24Z","pushed_at":"2018-09-12T21:53:59Z","git_url":"git://github.com/Jeykairis/angular-ngrx-material-starter.git","ssh_url":"git@github.com:Jeykairis/angular-ngrx-material-starter.git","clone_url":"https://github.com/Jeykairis/angular-ngrx-material-starter.git","svn_url":"https://github.com/Jeykairis/angular-ngrx-material-starter","homepage":"https://tomastrajan.github.io/angular-ngrx-material-starter","size":16385,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tomastrajan:master","ref":"master","sha":"5076324a5e17a3018b193ac395f420e50033d10c","user":{"login":"tomastrajan","id":3764868,"node_id":"MDQ6VXNlcjM3NjQ4Njg=","avatar_url":"https://avatars0.githubusercontent.com/u/3764868?v=4","gravatar_id":"","url":"https://api.github.com/users/tomastrajan","html_url":"https://github.com/tomastrajan","followers_url":"https://api.github.com/users/tomastrajan/followers","following_url":"https://api.github.com/users/tomastrajan/following{/other_user}","gists_url":"https://api.github.com/users/tomastrajan/gists{/gist_id}","starred_url":"https://api.github.com/users/tomastrajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomastrajan/subscriptions","organizations_url":"https://api.github.com/users/tomastrajan/orgs","repos_url":"https://api.github.com/users/tomastrajan/repos","events_url":"https://api.github.com/users/tomastrajan/events{/privacy}","received_events_url":"https://api.github.com/users/tomastrajan/received_events","type":"User","site_admin":false},"repo":{"id":90904321,"node_id":"MDEwOlJlcG9zaXRvcnk5MDkwNDMyMQ==","name":"angular-ngrx-material-starter","full_name":"tomastrajan/angular-ngrx-material-starter","owner":{"login":"tomastrajan","id":3764868,"node_id":"MDQ6VXNlcjM3NjQ4Njg=","avatar_url":"https://avatars0.githubusercontent.com/u/3764868?v=4","gravatar_id":"","url":"https://api.github.com/users/tomastrajan","html_url":"https://github.com/tomastrajan","followers_url":"https://api.github.com/users/tomastrajan/followers","following_url":"https://api.github.com/users/tomastrajan/following{/other_user}","gists_url":"https://api.github.com/users/tomastrajan/gists{/gist_id}","starred_url":"https://api.github.com/users/tomastrajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomastrajan/subscriptions","organizations_url":"https://api.github.com/users/tomastrajan/orgs","repos_url":"https://api.github.com/users/tomastrajan/repos","events_url":"https://api.github.com/users/tomastrajan/events{/privacy}","received_events_url":"https://api.github.com/users/tomastrajan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomastrajan/angular-ngrx-material-starter","description":"Angular NgRx & Angular Material Starter Project","fork":false,"url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter","forks_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/forks","keys_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/teams","hooks_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/hooks","issue_events_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues/events{/number}","events_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/events","assignees_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/assignees{/user}","branches_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/branches{/branch}","tags_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/tags","blobs_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/statuses/{sha}","languages_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/languages","stargazers_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/stargazers","contributors_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/contributors","subscribers_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/subscribers","subscription_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/subscription","commits_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/contents/{+path}","compare_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/merges","archive_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/downloads","issues_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues{/number}","pulls_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls{/number}","milestones_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/milestones{/number}","notifications_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/labels{/name}","releases_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/releases{/id}","deployments_url":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/deployments","created_at":"2017-05-10T20:13:47Z","updated_at":"2018-09-12T02:39:37Z","pushed_at":"2018-09-12T21:54:01Z","git_url":"git://github.com/tomastrajan/angular-ngrx-material-starter.git","ssh_url":"git@github.com:tomastrajan/angular-ngrx-material-starter.git","clone_url":"https://github.com/tomastrajan/angular-ngrx-material-starter.git","svn_url":"https://github.com/tomastrajan/angular-ngrx-material-starter","homepage":"https://tomastrajan.github.io/angular-ngrx-material-starter","size":16352,"stargazers_count":799,"watchers_count":799,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":237,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":237,"open_issues":18,"watchers":799,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325"},"html":{"href":"https://github.com/tomastrajan/angular-ngrx-material-starter/pull/325"},"issue":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues/325"},"comments":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/tomastrajan/angular-ngrx-material-starter/statuses/78839d5bdb2d0d6c5dffe65eb0af6bbd83e9eac5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"timdeschryver"}}