-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getter recalculation/caching? #25
Comments
In 0.5.x getter evaluation is pretty naive with no caching. In Here is an overview Getters are only calculated whenever their dependencies change. So if the dependency is a keypath then it will only recalculate when that path in the app state map has changed (which can be done as a simple You can read more of the implementation here: https://github.com/optimizely/nuclear-js/blob/next-update-readme-example/src/evaluator.js |
I'm salivating. Thanks!! |
This issue should be closable now, though it would probably be good to have this documented in the Readme; all there is on this now is
|
Closed in #40 |
The docs don't mention whether Getters are recalculated every time, or just once between Store updates. It seems this implementation should allow at least per-update caching/memoization. Is that implemented/on the roadmap? Could this be mentioned in the docs?
The text was updated successfully, but these errors were encountered: