Say I have an action someAction(params)
that takes params
which is managed in a store paramsStore
:
paramsStore.listen(function(params) {
someAction(params)
})
It seems that I can't just call this in my view because apparently this goes against the Flux way of doing things (actions shouldn't be called within store listeners).
The reason I have someAction
inside the store listener, is because I want it to be called every time the paramsStore
is modified. How can I achieved this without resorting to the 'unpattern' of calling actions within stores listener?