v0.4.4 - me mo memo mo me
What's Changed
- feat:
@memodecorator andmemoify()function for making memoized derived properties and methods in classes by @trusktr in #11 - improve and cleanup code and docs for
memoandmemoifyand docs overall by @trusktr in #12 - deprecate the
@reactivedecorator in favor of a new@untrackeddecorator by @trusktr in #13- The
@reactivedecorator 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 inconstructor, to avoid infinite loops). A new@untrackeddecorator now exists for that purpose. - If you read signals in the top level of any class
constructor, you should apply the@untrackeddecorator. Otherwise if you don't write aconstructorthat reads signals at the top level (i.e. not in an effect) you don't need this decorator. - See the
@untrackeddocs for more details and examples.
- The
Full Changelog: v0.4.3...v0.4.4