Q:

Redux Form - FieldsArray - fields is empty, length is 0

I tried to follow FieldArray example but I got fields length zero in renderEmployees - nothing is rendered.
What can be the cause?

class EmployeesContainer extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <div>
                {this.props.employees && this.props.employees.length > 0 &&
                    <FieldArray name="employees" component={renderEmployees}/>
                }
            </div>
        );
    }
}

const renderEmployees = ({ fields }) =>
    <div>
        {fields.map((employee, index) =>
            <div key={index}>
                <Field name={employee.first_name} type="text" component={renderField} className="cell" inputValue={employee.first_name} />
                <Field name={employee.uid} type="text" component={renderField} className="cell" inputValue={employee.uid} />
            </div>
        )}
    </div>;

A:

Well, the problem was using a bad form reducer, probably taken from an outdated example:
import { reducer as formReducer } from 'redux-form/immutable';

Its a stupid mistake but I expect a descent error message.
ofcourse the right usage is:
import { reducer as reduxFormReducer } from 'redux-form';

