Closed ShintaroNippon closed 5 years ago
HI there I already did it, I have created an action and a reducer, My doubt was calling this.props.dispatch(savemydata(data))
For now it's working but the info is spread into this props...
any help to set it in one variable ? thanks
For now it's working but the info is spread into this props... any help to set it in one variable ?
What exactly do you mean by that? To use state from your store you can inject it in to your components props via
const mapStateToProps = state => ({
targetProp: state.someParticularState,
});
export default connect(mapStateToProps)(MyComponent);
Please check the react-redux docs for more information about this. But the problems you are facing do not seem to be related to redux-persist.
problem solve you can close
HI there sorry bother you....
Hi there I'm following this example of element6 rt2zz/redux-persist#598
and I need help in creating the ./reducer in order to save information in user.. I already have in this.props the user and dispatch... but I need help...
sorry if I'm taking to much from you but I really need this ./reducer rootreducer