Skip to content

Problem adding another param to the action #49

@aaronplanell

Description

@aaronplanell

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions