makeomatic/redux-connect

filter-ed promises not being executed in componentDidMount

オープン

#30 opened on 2016/06/16

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (73 件のフォーク)batch import
bugenhancementhelp wanted

Repository metrics

Stars
 (550 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

BEGIN_GLOBAL_LOAD/END_GLOBAL_LOAD are dispatched on the client side even when filter stops the asyncConnect from blocking the render function. However, once the component is mounted, since the redux has saved the state loaded as true, it does not fetch the data. Due to this you have to manually redo the logic for re-fetching data in these instances. It would be nice to have some logic to ascertain that the promise is executed in componentDidMount.

コントリビューターガイド