You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/optimizely/nuclear-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
+
6
7
[](https://saucelabs.com/u/nuclearjs)
7
8
8
9
Traditional Flux architecture built with ImmutableJS data structures.
@@ -55,8 +56,6 @@ npm install nuclear-js
55
56
56
57
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 `state.getIn(keyPath) !== oldState.getIn(keyPath)` which is an `O(log32(n))` operation. The other case is when a getter is dependent on other getters. Since every getter is a pure function, NuclearJS will only recompute the getter if the values if its dependencies change.
57
58
58
-
You can read more of the implementation here: [src/evaluator.js](./src/evaluator.js)
0 commit comments