Closed bsdo64 closed 8 years ago
The problem you are encountering appears to be due to a circular dependency. Your stores import your actions, but then you have your actions importing your stores.
Ways to get around this would be to have higher order stores (or simply combining the data that needs to be shared into a single store). Keep in mind that Facebook recommends that a Flux store does not manage the state of a traditional MVC "model", but the state of a particular domain in the application, which would likely contain multiple models.
Lastly, if you still want to keep these stores separate, you can just send along the data when you dispatch your actions. Remember, your views can subscribe to store data, so you can subscribe to this data and pass it along when a user event triggers an action in that particular view.
I'm using 18.1 now. When I declare import in PostActions, it works fine
but, declare some stores in the action,
Action is undefined. So All the binding is fail. Why this is happend, and is there any way to use other store's data?