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

大神,我写到了250页,看不到你效果图上loading. #26

Open
jiexishede opened this issue Mar 12, 2017 · 3 comments
Open

大神,我写到了250页,看不到你效果图上loading. #26

jiexishede opened this issue Mar 12, 2017 · 3 comments

Comments

@jiexishede
Copy link

http://stackoverflow.com/questions/42749353/actions-may-not-have-an-undefined-type-property-have-you-misspelled-a-constan

问题在哪啊?

@jiexishede
Copy link
Author

** 改动 代码 ** ,变成这个样子.

loading 依然,没有加载出来啊.

P 标签,

loading

没有展示出来.

 case LOAD_ARTICLES: {
      return {
        ...state,
        loading: true,
        error: false,
      };
    }

    case LOAD_ARTICLES_SUCCESS: {
      return {
        ...state,
        loading: true,
        error: false,
        articleList: action.payload,
      };
    }

    case LOAD_ARTICLES_ERROR: {
      return {
        ...state,
        loading: false,
        error: true,
      };
    }

    default:
      return state;
  }



@jiexishede
Copy link
Author

image

没有 loadingerror 啊,大神.

@jiexishede
Copy link
Author

@connect(state => {
  return {
    articleList: state.home.list.articleList,
    loading: state.home.list.loading,
    error: state.home.list.error,
  };
}, {
  push,
  ...actions,
})

加上这两个就好了.

    loading: state.home.list.loading,
    error: state.home.list.error,

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