{"action":"closed","issue":{"url":"https://api.github.com/repos/kadirahq/react-komposer/issues/19","labels_url":"https://api.github.com/repos/kadirahq/react-komposer/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/react-komposer/issues/19/comments","events_url":"https://api.github.com/repos/kadirahq/react-komposer/issues/19/events","html_url":"https://github.com/kadirahq/react-komposer/issues/19","id":129091566,"number":19,"title":"Redux: whole app is re-rendered on every state update","user":{"login":"achtan","id":1048212,"avatar_url":"https://avatars.githubusercontent.com/u/1048212?v=3","gravatar_id":"","url":"https://api.github.com/users/achtan","html_url":"https://github.com/achtan","followers_url":"https://api.github.com/users/achtan/followers","following_url":"https://api.github.com/users/achtan/following{/other_user}","gists_url":"https://api.github.com/users/achtan/gists{/gist_id}","starred_url":"https://api.github.com/users/achtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achtan/subscriptions","organizations_url":"https://api.github.com/users/achtan/orgs","repos_url":"https://api.github.com/users/achtan/repos","events_url":"https://api.github.com/users/achtan/events{/privacy}","received_events_url":"https://api.github.com/users/achtan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-27T09:59:06Z","updated_at":"2016-01-28T07:53:22Z","closed_at":"2016-01-28T07:53:22Z","body":"hi, lets assume we have (Mantra) container like this:\r\n`````\r\nexport const composer = ({context}, onData) => {\r\n  const {store} = context();\r\n\r\n  return store.subscribe(() => {\r\n    const {foo} = store.getState();\r\n    onData(null, {foo});\r\n  })\r\n};\r\n\r\nexport default composeAll(\r\n  compose(composer),\r\n  useDeps()\r\n)(FooComponent);\r\n````\r\nbut on every and any state change my component is re-rendered because of `store.subscribe`.\r\n\r\nSo for example if I change `bar` value of my state my `FooComponent` will be also re-rendered despite that `foo` value of state is the same as it was...\r\n\r\nany idea how to fix this?"}}