{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/1339","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/1339/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/1339/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/1339/events","html_url":"https://github.com/erikras/redux-form/issues/1339","id":165331813,"number":1339,"title":"Dynamic form could get fields out of order","user":{"login":"joefiorini","id":3648,"avatar_url":"https://avatars.githubusercontent.com/u/3648?v=3","gravatar_id":"","url":"https://api.github.com/users/joefiorini","html_url":"https://github.com/joefiorini","followers_url":"https://api.github.com/users/joefiorini/followers","following_url":"https://api.github.com/users/joefiorini/following{/other_user}","gists_url":"https://api.github.com/users/joefiorini/gists{/gist_id}","starred_url":"https://api.github.com/users/joefiorini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joefiorini/subscriptions","organizations_url":"https://api.github.com/users/joefiorini/orgs","repos_url":"https://api.github.com/users/joefiorini/repos","events_url":"https://api.github.com/users/joefiorini/events{/privacy}","received_events_url":"https://api.github.com/users/joefiorini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-13T14:15:33Z","updated_at":"2016-07-27T14:34:45Z","closed_at":"2016-07-27T14:34:45Z","body":"I'm using redux-form to build forms configured in YAML. In the YAML, each field is configured as an object, then I specify each form as an object that has an array of field names. That array specifies the order of the fields. I then iterate over the fields object given to my by redux-form to render each field.\r\n\r\nAlthough I haven't run into this as an issue yet, it seems like there is a risk of my fields coming back in the wrong order. Since redux-form creates an object out of the array I hand in, and (afaict) does not pass the original array on to the decorated component, I lose the ability to use that array to guarantee I'm iterating over the fields in the original order.\r\n\r\nWhat if we passed the original array of fields (maybe called `fieldsList`?) along with the generate fields object? An alternative might be to make `fields` be a Map instead of an object, since Maps [do guarantee key order](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Objects_and_maps_compared)."},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/235604488","html_url":"https://github.com/erikras/redux-form/issues/1339#issuecomment-235604488","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/1339","id":235604488,"user":{"login":"joefiorini","id":3648,"avatar_url":"https://avatars.githubusercontent.com/u/3648?v=3","gravatar_id":"","url":"https://api.github.com/users/joefiorini","html_url":"https://github.com/joefiorini","followers_url":"https://api.github.com/users/joefiorini/followers","following_url":"https://api.github.com/users/joefiorini/following{/other_user}","gists_url":"https://api.github.com/users/joefiorini/gists{/gist_id}","starred_url":"https://api.github.com/users/joefiorini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joefiorini/subscriptions","organizations_url":"https://api.github.com/users/joefiorini/orgs","repos_url":"https://api.github.com/users/joefiorini/repos","events_url":"https://api.github.com/users/joefiorini/events{/privacy}","received_events_url":"https://api.github.com/users/joefiorini/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T14:34:45Z","updated_at":"2016-07-27T14:34:45Z","body":"@kristian-puccio I opened this before I had looked at v6 in detail. Closing since redux-form will no longer have this issue. Thanks!"}}
{"actor":{"display_login":"joefiorini"}}