Actions may not have an undefined “type” property. Have you misspelled a constant? [closed]

Your action below does not contain a type property which is required

export function loadArticles() {
  return {
    types:[LOAD_ARTICLES, LOAD_ARTICLES_SUCCESS, LOAD_ARTICLES_ERROR],
    url:'./api/articles.json',
  };
}

You should modify the above code so that your action creator returns a type

export function loadArticles() {
  return {
    type: LOAD_ARTICLES,
    url:'./api/articles.json',
  };
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)