sethvincent / virtual-app

Provides redux-like, unidirectional state management paired with virtual-dom.
MIT License
75 stars 5 forks source link

docs: how-to use partials #19

Open emersion opened 8 years ago

emersion commented 8 years ago

Document how to use partials to prevent the whole app to be re-rendered each time the state is modified.

yoshuawuyts commented 8 years ago

The solution is to use thunks, e.g. https://github.com/Raynos/vdom-thunk - which we should definitely document. Thanks for raising!

yoshuawuyts commented 8 years ago

Also https://www.npmjs.com/package/sheet-router has thunking built-in if you're looking for a router that plays well with virtual-*