{"action":"created","issue":{"url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/514","repository_url":"https://api.github.com/repos/davidkpiano/react-redux-form","labels_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/514/comments","events_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/514/events","html_url":"https://github.com/davidkpiano/react-redux-form/issues/514","id":186833687,"number":514,"title":"Error with immutable","user":{"login":"dmitrif","id":655800,"avatar_url":"https://avatars.githubusercontent.com/u/655800?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrif","html_url":"https://github.com/dmitrif","followers_url":"https://api.github.com/users/dmitrif/followers","following_url":"https://api.github.com/users/dmitrif/following{/other_user}","gists_url":"https://api.github.com/users/dmitrif/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrif/subscriptions","organizations_url":"https://api.github.com/users/dmitrif/orgs","repos_url":"https://api.github.com/users/dmitrif/repos","events_url":"https://api.github.com/users/dmitrif/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrif/received_events","type":"User","site_admin":false},"labels":[{"id":298251636,"url":"https://api.github.com/repos/davidkpiano/react-redux-form/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-02T15:28:41Z","updated_at":"2016-11-03T19:49:33Z","closed_at":"2016-11-03T13:48:37Z","body":"Hi! It's me again. I changed include to use `import { combineForms } from 'react-redux-form/lib/immutable';` however, an error appears:\r\n\r\n```\r\nfes_1 |     TypeError: Cannot use 'in' operator to search for 'get' in true\r\nfes_1 |         at /var/frontend/node_modules/react-redux-form/lib/utils/get-from-immutable-state.js:21:18\r\nfes_1 |         at Array.reduce (native)\r\nfes_1 |         at Object.immutableGetFromState [as get] (/var/frontend/node_modules/react-redux-form/lib/utils/get-from-immutable-state.js:17:15)\r\nfes_1 |         at /var/frontend/node_modules/react-redux-form/lib/utils/get-form.js:56:23\r\nfes_1 |         at /var/frontend/node_modules/immutable/dist/immutable.js:4899:25\r\nfes_1 |         at /var/frontend/node_modules/immutable/dist/immutable.js:4364:24\r\nfes_1 |         at /var/frontend/node_modules/immutable/dist/immutable.js:2869:56\r\nfes_1 |         at /var/frontend/node_modules/immutable/dist/immutable.js:3018:36\r\nfes_1 |         at /var/frontend/node_modules/immutable/dist/immutable.js:2834:35\r\nfes_1 |         at /var/frontend/node_modules/immutable/dist/immutable.js:1379:16\r\n```\r\n\r\nThe reducer is set up as such:\r\n```\r\nlet forms = combineForms({\r\n  billingInfo: billingInfoInitialState,\r\n});\r\n\r\nexport default combineReducers({\r\n  config,\r\n  forms\r\n});\r\n```\r\n\r\nAnd the form is set up as such:\r\n```\r\nimport React from 'react';\r\nimport { Control, Form, actions } from 'react-redux-form/lib/immutable';\r\n\r\nexport default class BillingForm extends React.Component {\r\n  handleSubmit(billingInfo) {\r\n    const { dispatch } = this.props;\r\n  }\r\n\r\n  render() {\r\n    return (\r\n      <Form model=\"billingInfo\" \r\n        onSubmit={(billingInfo) => this.handleSubmit(billingInfo)}>\r\n\r\n        <label>Address 1</label>\r\n        <Control.text model=\"billingInfo.address\" />\r\n             \r\n        <button type=\"submit\">Submit</button>\r\n      </Form>\r\n    );\r\n  }\r\n};\r\n```\r\n\r\nPlease advise. Thank you!"},"comment":{"url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/comments/258254085","html_url":"https://github.com/davidkpiano/react-redux-form/issues/514#issuecomment-258254085","issue_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/514","id":258254085,"user":{"login":"dmitrif","id":655800,"avatar_url":"https://avatars.githubusercontent.com/u/655800?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrif","html_url":"https://github.com/dmitrif","followers_url":"https://api.github.com/users/dmitrif/followers","following_url":"https://api.github.com/users/dmitrif/following{/other_user}","gists_url":"https://api.github.com/users/dmitrif/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrif/subscriptions","organizations_url":"https://api.github.com/users/dmitrif/orgs","repos_url":"https://api.github.com/users/dmitrif/repos","events_url":"https://api.github.com/users/dmitrif/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrif/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T19:49:33Z","updated_at":"2016-11-03T19:49:33Z","body":"Thank you!\r\n\r\nIt ends up tripping up on lines such as:\r\n\r\nLine 19 in get-field-from-state.js\r\n```const formPath = toPath(form.$form.model);```\r\n\r\nSince I believe form itself is an immutable object in this case. Along with some other spots."}}
{"actor":{"display_login":"dmitrif"}}