A decorator function that modifies the behavior of any @Select, @Select$, or @Dispatch
decorators to operate on a substore defined with a given reducer.
// The substore will be created from the return value of this function. basePath(): Array<string | String> | null { returnthis.userId ? ['users', this.userId] : null; } }
Returns
A ClassDecorator function that sets the reducer to the class constructor's LOCAL_REDUCER_KEY property.
A decorator function that modifies the behavior of any
@Select
,@Select$
, or@Dispatch
decorators to operate on a substore defined with a given reducer.Example
Returns
A ClassDecorator function that sets the reducer to the class constructor's LOCAL_REDUCER_KEY property.