I am using Alt library for Flux architecture implementation. I have a component, which displays information about movie. Now I am stuck in a situation where I need to render array of such components under my home page. The problem is that each of these components calls ajax request
inside componentDidMount
. So when I have more then one - I get:
Uncaught Error: Invariant Violation: Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch.
I wrote a longer post here. I'm sorry for the urgency, but I need this done in couple of days, and I simply cannot understand the nature of the problem.
Aucun commentaire:
Enregistrer un commentaire