reactjs - Redux-forms list to display many and redux form to edit one record. My design issue -


i have react redux component list multiple records in list, users can click on item. state maintained in redux array of objects. when user click on item selected , state maintained record (keep track of) selected item. list can refreshed latest data, , items can deleted list. far good. edit 1 item in list have redux-forms. issue form maintains own slice of state [when see state, see 2 slices 1 list , form.] there not single source of information item being edited. on list , on form slice. if update field in form, not show updated item in list. can hack -update code, etc , make [that avoid], see design issue? how design in better way?

regards!

how design store, when store needs populate list (using plain react-redux) , edit 1 item in list using forms (redux-forms) without duplicating same data in store?


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -