I’m looking into using Redux with Meteor for a React app.
How would I feed data from Meteor publications into my Redux store while still allowing the state tree to update automatically as the data from Meteor changes in realtime? Who should dispatch the action that triggers the update?
You can’t really have accurate time travel though if you are not putting all the data into the state right? There would be situations where a user’s action depends on the state of the data at the time they dispatched them.
I’ve taken a halfway house approach on that in our forms based app; I put the details of the record I’m editing into state and then build the UI (an edit form typically) based on that state data.
I’m finding that works pretty well; most of the interesting UI behaviour in our app so far has been related to the state of the record currently being edited (or the record currently selected in a list etc) rather than the contents of e.g. the read only lists of data.