You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am using redux and react-redux bindings for it and have the problem with getting right state when component just mount. The problem is: I can't start action before first render:
classHomePageextendsComponent{
...
componentWillMount(){this.props.fetchMovies({type: free,limit: 10});}render(){const{ movies }=this.props;// right now movies.isFetching = false;}}exportdefaultconnect(selectMovies,bindActions)(HomePage);
I want that at the first render I see that movies already fetching, how could I do this?
The text was updated successfully, but these errors were encountered:
Hi. I am using redux and react-redux bindings for it and have the problem with getting right state when component just mount. The problem is: I can't start action before first render:
I want that at the first render I see that movies already fetching, how could I do this?
The text was updated successfully, but these errors were encountered: