OptionaldispatchConditionRejection?: booleanIf condition returns false, the asyncThunk will be skipped.
This option allows you to control whether a rejected action with meta.condition == false
will be dispatched or not.
OptionalidGenerator?: (arg: ThunkArg) => stringA function to use when generating the requestId for the request sequence.
OptionalserializeError?: (x: unknown) => GetSerializedErrorType<ThunkApiConfig>A method to control whether the asyncThunk should be executed. Has access to the
arg, api.getState() and api.extra arguments.
false if it should be skipped
Options object for
createAsyncThunk.