Flux Dispatch.dispatch(…): Cannot dispatch in the middle of a dispatch

后端 未结 4 1799
名媛妹妹
名媛妹妹 2020-12-01 10:52

My code https://gist.github.com/ButuzGOL/707d1605f63eef55e4af

So when I get sign-in success callback I want to make redirect,
redirect works through dispatcher t

4条回答
  •  爱一瞬间的悲伤
    2020-12-01 11:36

    you can user the "defer" option in the dispatcher. In your case it would be like:

    Dispatcher.dispatch.defer(...);
    

提交回复
热议问题