first render need to render twice, have any better idea to solve the problem
geoffgu opened this issue · comments
componentDidMount() {
this.unsubscribeHandler = store.subscribe(() => {
this.refreshView();
}, this.componentInstanceUid);
/*
* Trigger action on target component didMount is faster than subscribe listeners.
* TACKY must fetch latest state manually to solve the problems above.
*/
this.refreshView();
}