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
To compute derived state for our module we can define so-called _selectors_. A selector is a pure function that takes the module's state - and optionally some additional arguments - and returns some derived value.
30
+
To compute derived state for our module we can define so-called _selectors_. A selector is a [pure function](https://en.wikipedia.org/wiki/Pure_function) that takes the module's state - and optionally some additional arguments - and returns some derived value.
31
+
32
+
> It is important that the selector is pure since it allows [memoizing](https://en.wikipedia.org/wiki/Memoization#Functional_programming) its result for efficiency (which **simplux** does for you automatically)
0 commit comments