Hacker News new | past | comments | ask | show | jobs | submit login

Sounds like you are looking for something like MobX? http://mobx.js.org

There's also Redux, which is harder to wrap your head around starting out, but has great edge case debugging capabilities (you can "time travel" forward and back with changes) and really efficient-and-seamless cached derived data with selectors.

Rematch[1] makes it really easy to get started with Redux.

1: https://github.com/rematch/rematch

Mobx supports "time travel" as easily as Redux. It also works with redux devtools, and requires less boilerplate.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact