How do I fetch the initial Redux state from an API response?
问题 Seen several questions about this but with many unclear and different answers. I am rendering a list of items in the very first load of my component, and currently I'm triggering this fetch like so: fetchMovies = () => { console.log('component page:', this.props.movie.page); this.props.getMoviesIfNeeded(this.props.movie.page); }; handleScroll = throttle(() => { let d = document.body; let scrollTop = window.scrollY; let windowHeight = window.innerHeight || document.documentElement.clientHeight