Since my Flux stores have Immutable data I'm wondering if it's better to construct those Immutable objects from the raw data before or after sending it through the dispatcher.
Example: I'm building a Twitter clone and I have a MessageStore
. One of my views calls messageActions.create("Hello World")
.
create: function(content) {
dispatcher.handleViewAction({
type: ACTIONS.NEW_MESSAGE,
message: { // convert inside the store