Hey, first of all, really nice library and nice article. Really like the conciseness and the default of not running. Was not understanding why my console.log was not being called and made me look at your nice code :)
One thing I encountered but not sure if it is by design :
By default autoStabilize will defer the effect call and I guess this is in general better as you can make sure you are not reexecuting since all the value would have settled at that point.
But out of curiousity I wanted to test a sync flow and I saw that you also export the stabilize function so I did autoStabilize(stabilize);
Hey, first of all, really nice library and nice article. Really like the conciseness and the default of not running. Was not understanding why my console.log was not being called and made me look at your nice code :)
One thing I encountered but not sure if it is by design :
By default autoStabilize will defer the effect call and I guess this is in general better as you can make sure you are not reexecuting since all the value would have settled at that point.
But out of curiousity I wanted to test a sync flow and I saw that you also export the stabilize function so I did
autoStabilize(stabilize);
See full example here:
And what happens is that I do not get any RENDER or COUNTER log except for the first values
Is that expected ?