Closed CoderBuck closed 10 months ago
I need to hide the Computed
class from the public API. It should only ever be called through the computed
method
Fixed on 1.2.0
computed( fn )
However, the behavior of the computed function varies in different compilation modes. Internally, the computed function calls _onComputedCreated, which in debug mode leads to the immediate execution of the fn within the computed function. However, in release mode, fn does not execute immediately, which could potentially cause issues in the production environment.
Oh that's right! For dev tools I added the value on create but can remove it now.
I can now grab the value on selection in dev tools
I will fix that on the next version and update devtools too
Fixed on 1.2.1
Computed
is lazy, butcomputed
is not lazy, by design, it should be lazy ?computed > _onComputedCreated
test code: