You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A utility function that allows defining a reducer as a mapping from action
@@ -151,7 +161,7 @@ export function createReducer<S>(
151
161
* This overload accepts an object where the keys are string action types, and the values
152
162
* are case reducer functions to handle those action types.
153
163
*
154
-
* @param initialState - The initial state that should be used when the reducer is called the first time.
164
+
* @param initialState - The initial state that should be used when the reducer is called the first time. This may optionally be a "lazy state initializer" that returns the intended initial state value when called.
155
165
* @param actionsMap - An object mapping from action types to _case reducers_, each of which handles one specific action type.
156
166
* @param actionMatchers - An array of matcher definitions in the form `{matcher, reducer}`.
157
167
* All matching reducers will be executed in order, independently if a case reducer matched or not.
0 commit comments