{"action":"opened","issue":{"url":"https://api.github.com/repos/nsoffa88/bwa-u4-feature-request/issues/4","repository_url":"https://api.github.com/repos/nsoffa88/bwa-u4-feature-request","labels_url":"https://api.github.com/repos/nsoffa88/bwa-u4-feature-request/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nsoffa88/bwa-u4-feature-request/issues/4/comments","events_url":"https://api.github.com/repos/nsoffa88/bwa-u4-feature-request/issues/4/events","html_url":"https://github.com/nsoffa88/bwa-u4-feature-request/issues/4","id":333559366,"node_id":"MDU6SXNzdWUzMzM1NTkzNjY=","number":4,"title":"Caveats","user":{"login":"stevetoro","id":7355203,"node_id":"MDQ6VXNlcjczNTUyMDM=","avatar_url":"https://avatars1.githubusercontent.com/u/7355203?v=4","gravatar_id":"","url":"https://api.github.com/users/stevetoro","html_url":"https://github.com/stevetoro","followers_url":"https://api.github.com/users/stevetoro/followers","following_url":"https://api.github.com/users/stevetoro/following{/other_user}","gists_url":"https://api.github.com/users/stevetoro/gists{/gist_id}","starred_url":"https://api.github.com/users/stevetoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevetoro/subscriptions","organizations_url":"https://api.github.com/users/stevetoro/orgs","repos_url":"https://api.github.com/users/stevetoro/repos","events_url":"https://api.github.com/users/stevetoro/events{/privacy}","received_events_url":"https://api.github.com/users/stevetoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T07:59:25Z","updated_at":"2018-06-19T07:59:25Z","closed_at":null,"author_association":"NONE","body":"> This method of removing the song from the search results array would take longer however, because it would require going through the entire array and checking each result. It would also take longer because even once it has found the correct song to remove, the method would keep going through the rest of the array even though what we wanted to get done has been completed.\r\n\r\nIt's considered a best practice to treat React state as immutable. It should not be changed directly, but rather copied and then changed. This is where iterator methods like `slice`, `map` and `filter` come into great use within React.\r\n\r\nWhat happens when a user saves a playlist, but the next playlist could make use of the current searchResults? With enough searchResults having been removed from the previous playlist, this could force the user to redundantly execute the same search again just to recover the tracks that had been removed. How could you improve this edge case?\r\n"}}
{"actor":{"display_login":"stevetoro"}}