{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/redux/issues/1769","repository_url":"https://api.github.com/repos/reactjs/redux","labels_url":"https://api.github.com/repos/reactjs/redux/issues/1769/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/redux/issues/1769/comments","events_url":"https://api.github.com/repos/reactjs/redux/issues/1769/events","html_url":"https://github.com/reactjs/redux/issues/1769","id":156768781,"number":1769,"title":"React components not updating","user":{"login":"cideM","id":4246921,"avatar_url":"https://avatars.githubusercontent.com/u/4246921?v=3","gravatar_id":"","url":"https://api.github.com/users/cideM","html_url":"https://github.com/cideM","followers_url":"https://api.github.com/users/cideM/followers","following_url":"https://api.github.com/users/cideM/following{/other_user}","gists_url":"https://api.github.com/users/cideM/gists{/gist_id}","starred_url":"https://api.github.com/users/cideM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cideM/subscriptions","organizations_url":"https://api.github.com/users/cideM/orgs","repos_url":"https://api.github.com/users/cideM/repos","events_url":"https://api.github.com/users/cideM/events{/privacy}","received_events_url":"https://api.github.com/users/cideM/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactjs/redux/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-25T14:43:04Z","updated_at":"2016-05-25T18:35:35Z","closed_at":null,"body":"I've tried any and everything I came across so now I give up and turn to someone with more expertise. Before I start, here's the repo: https://github.com/cideM/tictactoe (just clone, npm install, npm start, available at localhost:3000)\r\n\r\nWhat's supposed to happen: you click a cell in the grid and then the store gets a new grid object with a new entry (e.g., 1: 'X'). This grid object is saved to the store as \"markedFields\", which is passed down to the Game component and then down to TableRow and TableCol. TableCol is just a dumb component for <td>, which would normally show either X, O or nothing, all depending on the state of the store.\r\n\r\nBut without forceUpdate() in my onClickHandler function, the Game component just doesn't update. Everything else appears to be working. I've checked dozens of different ways of storing the grid (flat vs. nested) and I am pretty sure that I am not mutating the state in my reducer ... but maybe my lack of Javascript skills coupled with me having banged my head against the wall for too long now, makes me overlook some glaring issue.\r\n\r\nI would really appreciate it if someone could just tell me why nothing updates. Ignore any other issues as this repo is a huge work in progress and it's my first time with redux (and my 2nd or 3rd time with react...).\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/reactjs/redux/issues/comments/221666322","html_url":"https://github.com/reactjs/redux/issues/1769#issuecomment-221666322","issue_url":"https://api.github.com/repos/reactjs/redux/issues/1769","id":221666322,"user":{"login":"markerikson","id":1128784,"avatar_url":"https://avatars.githubusercontent.com/u/1128784?v=3","gravatar_id":"","url":"https://api.github.com/users/markerikson","html_url":"https://github.com/markerikson","followers_url":"https://api.github.com/users/markerikson/followers","following_url":"https://api.github.com/users/markerikson/following{/other_user}","gists_url":"https://api.github.com/users/markerikson/gists{/gist_id}","starred_url":"https://api.github.com/users/markerikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markerikson/subscriptions","organizations_url":"https://api.github.com/users/markerikson/orgs","repos_url":"https://api.github.com/users/markerikson/repos","events_url":"https://api.github.com/users/markerikson/events{/privacy}","received_events_url":"https://api.github.com/users/markerikson/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T18:35:34Z","updated_at":"2016-05-25T18:35:34Z","body":"@MiguelCastillo: yeah, certainly as someone who's answered a lot of newbie questions, it's easy to react with \"Argh, I've seen that question A GAZILLION TIMES ALREADY!!1!!\".  But, gotta remember that usually this stuff is new to whoever's asking, and try to find a way to answer the question, point to useful resources, and be encouraging in the process.\r\n\r\nPer your reducer suggestion: this actually kinda gets back to what I was saying about the behavior of `combineReducers` being the \"default\", over in https://github.com/reactjs/redux/pull/1768.  If someone wanted to write a reducer wrapper/generator/thingy that called subfunctions, took the \"change descriptions\", and centralized the merging logic, that's entirely possible.  "}}
{"actor":{"display_login":"markerikson"}}