Skip to content

Release Notes ​

What changed in the releases of @angular-redux2/decorators. The current line is v1.0.x.

v1.0.0 ​

The first release brings the 5.x decorators back on top of the @angular-redux2/store 6 signal store, so decorated components keep working while you migrate them to signals.

ts
import { Dispatch, Select } from '@angular-redux2/decorators';
  • Added: @Select, @Select$, and @SelectSignal, with the 5.x key, path, and function selectors.
  • Added: @Dispatch on methods and arrow function fields.
  • Added: @Substore with basePath.
  • Added: provideNgReduxDecorators hands the store to the decorators, which replaces the static NgRedux.store of 5.x. It works with provideMockNgRedux in tests.
  • Changed: a decorated property builds its selection on the first read and then becomes a plain property, so later reads skip the getter.
  • Changed: a sub-store selection follows the path when basePath() changes, where 5.x stayed on the first path.
  • Changed: @Substore destroys the sub-store in ngOnDestroy.
  • Fixed: a @Dispatch arrow function field wraps the function of each instance. In 5.x every instance called the function of the last instance created.
  • Migration: change the import from @angular-redux2/store to @angular-redux2/decorators and add the provider. See Getting Started.

See also ​

Released under the Mozilla Public License 2.0