Closed rpominov closed 9 years ago
In case one need to read from fluce.stores
in action creator, she can do it in code that calls the creator:
fluce.actions.someActionCreator(fluce.stores.someStore.someData, anotherArgument)
.addActionCreator()
now removed (see #7)
... and remove
dispatch
method fromfluce
, so only registered action creators could dispatch.Both features provide more flexibility because 1) action creators can read from
fluce.stores
2) one can dispatch an action directly, without using an action creator. But are these good patterns?For the clarification of what is proposed: