↧
Answer by Alexis for How can I delay rendering until then() of promise...
For manage your component rendering use the state of your component. and update it when you receive your data.constructor(props) { super(props); this.state={ postList:this.props.postList; }...
View ArticleAnswer by philipjc for How can I delay rendering until then() of promise...
Apologies, I've totally changed my answer, I bypassed the fact you are using Redux.The fact that you're using Redux, I'd set up an async action that shouldComponentUpdate calls, which kick-starts the...
View ArticleHow can I delay rendering until then() of promise completes?
I'm using reactjs with redux and this is a part of one of my components.I want to render postList of the promise which is returned by handleFetchPosts, but the render() function starts rendering before...
View Article