{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/redux/issues/610","labels_url":"https://api.github.com/repos/rackt/redux/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/rackt/redux/issues/610/comments","events_url":"https://api.github.com/repos/rackt/redux/issues/610/events","html_url":"https://github.com/rackt/redux/issues/610","id":102664794,"number":610,"title":"Component won't re-render (universal)","user":{"login":"boyswan","id":7622401,"avatar_url":"https://avatars.githubusercontent.com/u/7622401?v=3","gravatar_id":"","url":"https://api.github.com/users/boyswan","html_url":"https://github.com/boyswan","followers_url":"https://api.github.com/users/boyswan/followers","following_url":"https://api.github.com/users/boyswan/following{/other_user}","gists_url":"https://api.github.com/users/boyswan/gists{/gist_id}","starred_url":"https://api.github.com/users/boyswan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyswan/subscriptions","organizations_url":"https://api.github.com/users/boyswan/orgs","repos_url":"https://api.github.com/users/boyswan/repos","events_url":"https://api.github.com/users/boyswan/events{/privacy}","received_events_url":"https://api.github.com/users/boyswan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackt/redux/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-23T21:54:39Z","updated_at":"2015-08-23T23:00:19Z","closed_at":null,"body":"I have an action posting to my database, with the reducer successfully posting the response to my state. This works fine, however my component isn't re-rendering automatically, I can only use the updated component with a manual re-render.\r\n\r\nHere's my component:\r\n\r\n```javascript\r\nexport default class Colours extends React.Component {\r\n\r\n  componentDidMount() {\r\n    this.props.getColours();\r\n  }\r\n\r\n  render() {...}\r\n\r\n  addItem = () => {\r\n    this.props.postColour({ \r\n      colour: 'pink' \r\n    });\r\n  }\r\n\r\n}\r\n```\r\n\r\nmy action: \r\n\r\n```javascript\r\nimport req from 'axios';\r\n\r\nexport function postColour(value) {\r\n  return {\r\n    type: 'POST_COLOUR',\r\n    promise: req.post('/api/colours', value)\r\n  };\r\n}\r\n```\r\n\r\nand my reducer:\r\n```javascript\r\nimport Immutable from 'immutable';\r\n\r\nexport default function colourReducer(state = new Immutable.Map(), action) {\r\n  switch(action.type) {\r\n\r\n    case 'POST_COLOUR': {\r\n      return state.merge(action.res.data.colours)\r\n    }\r\n\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\nAm I missing/doing something completely wrong for my props not to be updated as soon as the response is merged with my initial state?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/rackt/redux/issues/comments/133952912","html_url":"https://github.com/rackt/redux/issues/610#issuecomment-133952912","issue_url":"https://api.github.com/repos/rackt/redux/issues/610","id":133952912,"user":{"login":"boyswan","id":7622401,"avatar_url":"https://avatars.githubusercontent.com/u/7622401?v=3","gravatar_id":"","url":"https://api.github.com/users/boyswan","html_url":"https://github.com/boyswan","followers_url":"https://api.github.com/users/boyswan/followers","following_url":"https://api.github.com/users/boyswan/following{/other_user}","gists_url":"https://api.github.com/users/boyswan/gists{/gist_id}","starred_url":"https://api.github.com/users/boyswan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyswan/subscriptions","organizations_url":"https://api.github.com/users/boyswan/orgs","repos_url":"https://api.github.com/users/boyswan/repos","events_url":"https://api.github.com/users/boyswan/events{/privacy}","received_events_url":"https://api.github.com/users/boyswan/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T23:00:19Z","updated_at":"2015-08-23T23:00:19Z","body":"Ok fingers crossed this one works.. Thanks for bearing with me !"}}