@WithStore decorator
With constant move to functional programming and introduction of injectable actions I have introduced WithStore decorator. It comes together with late initialisation of actions. Now signal actions taking all params that are required to inject store into actions.
@Injectable()
@WithStore()
export class TabStateActions extends HasSignalStore<TabState> {
...
}
Last updated
Was this helpful?