MCPcopy
hub / github.com/reduxjs/redux / addTodo

Function addTodo

test/helpers/actionCreators.ts:13–15  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

11import { Dispatch } from 'redux'
12
13export function addTodo(text: string): TodoAction {
14 return { type: ADD_TODO, text }
15}
16
17export function addTodoAsync(text: string) {
18 return (dispatch: Dispatch): Promise<void> =>

Callers 5

dispatchingMiddlewareFunction · 0.90
addTodoAsyncFunction · 0.70
addTodoIfEmptyFunction · 0.70

Calls

no outgoing calls

Tested by 1

dispatchingMiddlewareFunction · 0.72