by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Terry
    @tmcdonnell87
    It now appears all of my props are being passed straight down to the <input>
    For example, <input label="Email Address" placeholder="Your email" controlprops="[object Object]" validators="[object Object]" messages="[object Object]" name="registration.email" value="a@b.com" fieldprops="[object Object]" class="form-control">
    Terry
    @tmcdonnell87
    Appears it was actually between 1.14.2 and 1.14.4...
    Terry
    @tmcdonnell87
    Circling back to ^, it's a minor problem and logged here: davidkpiano/react-redux-form#1021
    Chris Gruel
    @devorbitus
    Hiya, could someone point me towards some examples of unit testing forms created with react-redux-form. I have a feeling I am over complicating it but would like a reference to be sure.
    David Khourshid
    @davidkpiano
    @devorbitus look at the RRF unit tests. it's not too hard
    the process is just creating a store like you would with combineForms and then selecting inputs, and entering text into them, and checking that the store has the right value.
    Baruch Kogan
    @boriskogan81
    hi, guys. Could anyone explain to me how to initialize field arrays with some field length? the example has a button that is linked to fields.push in the stateless method, but I'd like to start off with several fields, and can't figure it out
    David Khourshid
    @davidkpiano
    @boriskogan81 wrong repo
    kkashou
    @kkashou
    is there a way to not clear all the forms input when a reset button has been pressed?
    Christian Kaps
    @akkie
    What would be the best way to sanitize a value before it gets updated in store?
    karthidec
    @karthidec
    Does anyone have an example of a custom component integrated with react-redux-form? We would like to see the implementation of the custom component which integrates with validatations on the form.
    Rich Buggy
    @richbuggy_twitter
    If I'm using LocalForm and I dispatch actions.submit("model-name") and everything is valid should it not result in the onSubmit handler being called?
    LeeHyungGeun
    @LeeHyungGeun

    How can I change a field of LocalForm?

    <Control.text model=".text">

    <Control.text model=".text"
    David Khourshid
    @davidkpiano
    What do you mean?
    LeeHyungGeun
    @LeeHyungGeun
    Never Mind. I solved it with Github documentation. Actually, I didn't know how to change the model of LocalForm
    attachDispatch(dispatch) {
      this.formDispatch = dispatch
    }
    handleSubmit(val) {
      this.formDispatch(actions.change('local.text', ''))
    }
    <LocalForm getDispatch={(dispatch) => this.props.attachDispatch(dispatch)} />
    AnsonT
    @AnsonT
    Field changes that affect other fields. What's the recommended way to update (normalize) the model after a field change? Would be great to have an actions.normalize(model, values => updatedValues )
    Brad Wertman
    @bmwertman

    I'm following the Quick Start guide for react-redux-form to add it to my react app with a redux reducer and store that are already in place. The redux createStore method keeps throwing an error "Object is not a function"

    import { createStore } from 'redux';
    import { createForms, combineReducers } from 'react-redux-form'
    import rootReducer from '../reducers/index';
    import userReducer from '../reducers/user';
    
    const initialUserState = {
      firstName: '',
      lastName: ''
    }
    
    const store = createStore(
      combineReducers(
        {
        root: rootReducer,
        user: userReducer,
        ...createForms({
          user:initialUserState,
        }),
      })
    );
    
    export default store;

    Any help as to what I may be doing wrong?

    David Khourshid
    @davidkpiano
    Make sure you have that combineReducers in there too
    Brad Wertman
    @bmwertman
    @davidkpiano, it's there. Not sure what you mean. The error throws on the const store = line.
    Brad Wertman
    @bmwertman
    @davidkpiano Got it. I'm new to Redux in general and your Quick Start example didn't show where you imported combineReducers from. I presumed it was coming from react-redux-form instead of fromredux. It wasn't until I dove into the detail page ofcreateForms` that I caught it.
    Pavel Šindelka
    @pavel-sindelka
    Hello guys! Am I able to set init values with dynamic redox-form fileds?
    prsdcse
    @prsdcse
    I have updraged Babel packages and webpack packages to the latest one on my fork and if I do npm i and npm run build to my forked repo it works good and if i copy paste the package with my project node_modules it works. But if I try to use .git of my forked package to do npm install -S react-redux-form@forkedrepo.git here i dont see the umd and lib folders got it build automatically.. please suggest what could be the issue ...