Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EnhancedSlice<TState, TCaseReducers, TName>

Type Parameters

Hierarchy

Index

Properties

actions: CaseReducerActions<TCaseReducers>

Action creators for the types of actions that are handled by the slice reducer.

caseReducers: SliceDefinedCaseReducers<TCaseReducers>

The individual case reducer functions that were passed in the reducers parameter. This enables reuse and testing if they were defined inline when calling createSlice.

name: TName

The slice name.

onBuild: OnBuild<EnhancedSlice<TState, TCaseReducers, TName>>
onReady: OnReady<EnhancedSlice<TState, TCaseReducers, TName>>
reducer: Reducer<TState, AnyAction>

The slice's reducer.

select: Selector<TName, TState, TState>

a selector that returns state of slice from root state

param state

Methods

  • getInitialState(): State
  • Provides access to the initial state value given to the slice. If a lazy state initializer was provided, it will be called and a fresh value returned.

    Returns State

Generated using TypeDoc