Untitled
Never
import: lodash: keyBy: pick: ./api: syncTodos: apiSyncTodos ./reducers: todosReducer: ./model: createTodoId: types: - TODO_CREATE - TODO_UPDATE - TODO_DELETE - TODO_TOGGLE - TODO_SYNC - TODO_SYNC/ERROR - TODO_SYNC/DONE actions: createTodo: type: TODO_CREATE args: [text] setTodoText: type: TODO_UPDATE args: [id, text] deleteTodo: type: TODO_DELETE args: [id] toggleTodo: type: TODO_TOGGLE args: [id] syncTodos: type: TODO_SYNC args: [after] promise: $apiSyncTodos errorAction: type: TODO_SYNC/ERROR doneAction: type: TODO_SYNC/DONE args: [todos] state: todos: initial: byId: {} ids: [] isLoading: false isError: false reducer: TODO_CREATE: - vars: todoId: [^createTodoId, 12] - push: [$state.ids, $todoId] - set: - $state.byId.$(todoId) - id: $todoId text: $action.text done: false TODO_UPDATE: - set: [$state.byId.$($action.id).text, $action.text] TODO_TOGGLE: - set: - $state.byId.$(action.id).done, - [^not, $state.byId.$(action.id).done], TODO_DELETE: - unset: [$state.byId.$(action.id)] - pull: [$state.ids, $action.id] TODO_SYNC: - set: [$state.isLoading, true] TODO_SYNC/DONE: - set: [$state.isLoading, false] - set: [$state.byId, [^keyBy, $action.todos, id]] - set: [$state.ids, [^pick, $action.todos, id]] TODO_SYNC/ERROR: - set: [$state.isLoading, false] - set: [$state.isError, $action.error] default: $todosReducer
Raw Text
-
Makers CBD Gummies Reviews
58 sec ago
-
Adult Telegram Channels
9 min ago
-
No Deposit Bonus
12 min ago
-
Johnny America Standing On Business!
20 min ago
-
Javy Coffee Reviews
21 min ago
-
Easy Outstation Cab Booking | Reliable Taxis Across India
48 min ago
-
Take my Virginity and I Let You CUM between my TITS - Innocent Step Sister Fucks For The First Time
57 min ago
-
Untitled
1 hour ago
-
https://www.macombdaily.com/2024/03/27/the-growth-matrix-reviews-2024-legit-growth-matrix-or-hidden-
1 hour ago
-
The Power of Valves - Engineering Excellence Unleashed
1 hour ago