Skip to content

v0.4.4 - me mo memo mo me

Choose a tag to compare

@trusktr trusktr released this 24 Nov 18:58
· 9 commits to main since this release

What's Changed

  • feat: @memo decorator and memoify() function for making memoized derived properties and methods in classes by @trusktr in #11
  • improve and cleanup code and docs for memo and memoify and docs overall by @trusktr in #12
  • deprecate the @reactive decorator in favor of a new @untracked decorator by @trusktr in #13
    • The @reactive decorator was previously required for making signal fields work. It is no longer required. Another thing it did was make class constructors untracked (to avoid tracking in effects when reading signals in constructor, to avoid infinite loops). A new @untracked decorator now exists for that purpose.
    • If you read signals in the top level of any class constructor, you should apply the @untracked decorator. Otherwise if you don't write a constructor that reads signals at the top level (i.e. not in an effect) you don't need this decorator.
    • See the @untracked docs for more details and examples.

Full Changelog: v0.4.3...v0.4.4