Skip to content
New issue

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

Problem adding another param to the action #49

Closed
aaronplanell opened this issue Feb 24, 2017 · 1 comment
Closed

Problem adding another param to the action #49

aaronplanell opened this issue Feb 24, 2017 · 1 comment

Comments

@aaronplanell
Copy link

Hello,

I've got a very weird issue. I have an action that works:

export function fetchMetadades() {
  const url = `${API_ROOT_URL}/${API_METADADES}`;
  const request = axios.get(url);

  return {
    type: FETCH_METADADES,
    payload: request
  };
}

But if I add another parameter, for instance:

export function fetchMetadades() {
  const url = `${API_ROOT_URL}/${API_METADADES}`;
  const request = axios.get(url);

  return {
    type: FETCH_METADADES,
    payload: request,
    newParam: "withANewValue"
  };
}

It doesn't work 😨 What I'm doing wrong?

@aaronplanell
Copy link
Author

Sorry. I applied the the solution of #28 and it worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant