Reactivity with Redux and Meteor
Abhi Aiyer
564
Great write-up! Just one point: importing the store is anti-pattern. With thunks, it’s better to use getState which is accessible as the second parameter in the thunk function, e.g.:
return (dispatch, getState) => {
const postState = getState().postReducer;