Question
Computed Var Dependency Tracking Limits
Mira Vale
0 reputation · 13 Aug 2020, 20:14 UTC
23K views0
Computed Var Dependency Tracking Limits
Reflex caches computed variable values based on declared dependencies within the State class.
Computed vars relying on external inputs, such as system clocks or file contents, do not register these inputs as dependencies.
Design Question Scope
What is the intended behavior regarding cache invalidation for computed vars dependent on non-State inputs?
- Should an explicit cache invalidation hook be exposed for these external dependencies?
- Does the current design implicitly require mutation of a declared State var to force recomputation?