feathers-starter-react-redux-login-roles icon indicating copy to clipboard operation
feathers-starter-react-redux-login-roles copied to clipboard

pick reset token-from-props

Open aplb opened this issue 7 years ago • 2 comments

aplb avatar Oct 12 '17 16:10 aplb

Could you help me, I'm not clear how this would be used.

eddyystop avatar Oct 13 '17 11:10 eddyystop

Hi, the idea is to simply rely on mechanism that any props are passed to the Form thru reduxForm and are available in handleSubmit = (values, dispatch, props). This allows to get rid of impure mapStateToProps which keeps token in closure. All the usage stays the same.

aplb avatar Oct 17 '17 12:10 aplb