mithril-redux icon indicating copy to clipboard operation
mithril-redux copied to clipboard

There's some reason why I have to pass `redraw: true` when dispatch actions?

Open rkmax opened this issue 8 years ago • 1 comments

I think the 'redraw' is the expected behavior

rkmax avatar Jun 12 '16 21:06 rkmax

Yes, it should be in theory. Originally I did this so that it could co-exist with the m.mount() feature of Mithril which does auto-redrawing. I didn't want to redraw more often than necessary. However, the appropriate thing would be to have the rendering controlled based on a subscription to the Redux store.

A basic implementation shouldn't be hard, but it may need some optimizations that I'm not aware of.

I'll take a look at this when I can, but it might be a couple weeks before I can get anything done.

colinbate avatar Jun 15 '16 04:06 colinbate