{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/544","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/544/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/544/events","html_url":"https://github.com/erikras/redux-form/issues/544","id":126685941,"number":544,"title":"How to update only the form that changed when multiple forms exists in same page","user":{"login":"chbdetta","id":2610489,"avatar_url":"https://avatars.githubusercontent.com/u/2610489?v=3","gravatar_id":"","url":"https://api.github.com/users/chbdetta","html_url":"https://github.com/chbdetta","followers_url":"https://api.github.com/users/chbdetta/followers","following_url":"https://api.github.com/users/chbdetta/following{/other_user}","gists_url":"https://api.github.com/users/chbdetta/gists{/gist_id}","starred_url":"https://api.github.com/users/chbdetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chbdetta/subscriptions","organizations_url":"https://api.github.com/users/chbdetta/orgs","repos_url":"https://api.github.com/users/chbdetta/repos","events_url":"https://api.github.com/users/chbdetta/events{/privacy}","received_events_url":"https://api.github.com/users/chbdetta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T16:06:09Z","updated_at":"2016-01-17T08:06:38Z","closed_at":null,"body":"I have like 5 redux-form component in a single page, when a field in one of those forms changes, all of the 5 forms update, causing very bad performance.\r\nI try to use `shouldComponentUpdate` to limit the updating to the form that actually changed but I don't find any information from the `props` passed by redux form.\r\n\r\n`pristine` denotes if the form is different from its initial state but I want to have some flag that indicates if some of the form's field is different from last change."},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/172299365","html_url":"https://github.com/erikras/redux-form/issues/544#issuecomment-172299365","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/544","id":172299365,"user":{"login":"erikras","id":4396759,"avatar_url":"https://avatars.githubusercontent.com/u/4396759?v=3","gravatar_id":"","url":"https://api.github.com/users/erikras","html_url":"https://github.com/erikras","followers_url":"https://api.github.com/users/erikras/followers","following_url":"https://api.github.com/users/erikras/following{/other_user}","gists_url":"https://api.github.com/users/erikras/gists{/gist_id}","starred_url":"https://api.github.com/users/erikras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikras/subscriptions","organizations_url":"https://api.github.com/users/erikras/orgs","repos_url":"https://api.github.com/users/erikras/repos","events_url":"https://api.github.com/users/erikras/events{/privacy}","received_events_url":"https://api.github.com/users/erikras/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T08:06:38Z","updated_at":"2016-01-17T08:06:38Z","body":"If they are all attached to the same form (i.e. the `form` config parameter is the same for all of them), they must necessarily all update because they are listening to that slice of the Redux state.\r\n\r\nIf they are connected to different forms, [they will not all re-render](https://github.com/erikras/redux-form/blob/master/src/__tests__/createReduxForm.spec.js#L1732-L1782).\r\n\r\nAnd [only the field that changes will mutate](https://github.com/erikras/redux-form/blob/master/src/__tests__/createReduxForm.spec.js#L1707-L1730), so you can use `===` on each field when deciding whether or not to rerender the input."}}