In my codebase, I fire action(s) inside some store listeners. However, I've heard recently that this is a bad practice. Why is it bad and how should I fix or refactor it? I've done research on this issue but wasn't able to find a good example.
FYI, to fire action(s), I use action.defer provided by Alt.js.
Your approach is a valid Flux pattern, however when the function that handles actions is firing another action, it easily becomes a bug spot on your code, and it becomes difficult to track the bug.
How to refactor:
Depends on what does the Action currently fired by the store means: