Closed reactwo closed 5 years ago
PS: my action.js
export const types = {
MESSAGES: {
SYNC: 'MESSAGES.SYNC',
NEW: {
CHANGE: 'MESSAGES.NEW.CHANGE',
SEND: 'MESSAGES.NEW.SEND'
}
}
}
export const syncMessages = messages => ({
type: types.MESSAGES.SYNC,
messages
})
export const changeNewMessage = text => ({
type: types.MESSAGES.NEW.CHANGE,
text
})
export const sendNewMessage = () => ({
type: types.MESSAGES.NEW.SEND
})
The issue tracker here on GitHub is reserved for bug reports and feature requests. For usage questions (which is what I believe this is), please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!
Please feel free to reply if you think this issue was closed prematurely.
I want the save the value of the input field with handeleSubmit for that I have given a piece of code in my form :
while implementing my code for the handleSubmit part I am getting an error: Cannot read property 'type' of undefined
export default connect(null,mapDispatchToProps)(Messages) I want to save the value as an array, for that, I wrote my code for reducer :
Thanks in advance