We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support.jsx
..... fetchData = () => { var params = { 'internshipbuffer':this.state.buffer_id } supportAction.getMessage(params).then(this.updateData) } .....
supportAction.jsx
import Reflux from 'reflux' import supportResource from '../resources/supportResource' var actions = Reflux.createActions({ 'getMessage': { children: ['completed', 'failed'] } }); actions.getMessage.listenAndPromise(supportResource.getMessage(params)); export default actions;
supportResource.jsx
import Api from '../util/api' var supportResource = { getMessage(params) { return Api.get('/internshipbuffer/getChat', params); } } export default supportResource;
I am getting an error in supportAction.jsx :-
params is not defined
How to pass params to the resource ? If i don't pass params i am getting undefined response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
support.jsx
supportAction.jsx
supportResource.jsx
I am getting an error in supportAction.jsx :-
params is not defined
How to pass params to the resource ?
If i don't pass params i am getting undefined response
The text was updated successfully, but these errors were encountered: