These are chat archives for erikras/redux-form

25th
Oct 2016
dannybit
@dannybit
Oct 25 2016 02:53
Hi so I am encountering this problem with redux-form and rect drag and drop. http://stackoverflow.com/questions/33725333/react-dnd-element-style-is-not-updated-on-drag-move the suggested solution is to use a unique id for the key of the item
but when Iterate the field array I only get the index and name
Is there a way to get a unique id for the elements of the field array?
that doesn't change as you change the order of the elements
Michael Oakley
@oakley808
Oct 25 2016 21:01
@mikedevita I'm using <Field component={renderSelect}... to render my select menu. I assume <textarea> is no different.
Luís Rudge
@luisrudge
Oct 25 2016 21:54
hi friends
const mapStateToProps = (s, p) => ({
  initialValues: p.profile //p.profile is populated
});

@reduxForm({
  form: 'editProfile',
  fields: ['name', 'email', 'phoneNumber']
})
@connect(mapStateToProps)
any thoughts on why my fields are not being pre populated?
ahh
I have to use connect before reduxForm