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:
@Dispatchon methods and arrow function fields. - Added:
@SubstorewithbasePath. - Added:
provideNgReduxDecoratorshands the store to the decorators, which replaces the staticNgRedux.storeof 5.x. It works withprovideMockNgReduxin 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:
@Substoredestroys the sub-store inngOnDestroy. - Fixed: a
@Dispatcharrow 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/storeto@angular-redux2/decoratorsand add the provider. See Getting Started.
