everytime I find myself trying to add something in the State to derivate the data in the Model to something usable by my views, I end up moving the transformation to the Model because if not the state would be recomputing heavy stuffs every step (because the model knows when data mutate while the state does not…). Is that normal? Am I missing something?
For example I retrieve some big datastructure from the backend with an action, it is proposed to the model (via an event to notify the model of the information), the model mutate its data based on this new information, and then the state is rendered with the current data of the model, and the state should compute some aggregated information on the big datastructure, but it's big, so it's costly to compute this every time the model change. So I find myself doing the computation in the model only when I know the big datastructure actually changed.