Skip to content

Commit 3b4b47e

Browse files
committed
Update effector-action
1 parent f6f0190 commit 3b4b47e

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

apps/food-order/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"dependencies": {
7-
"effector-action": "^1.1.0"
7+
"effector-action": "^1.1.1"
88
},
99
"devDependencies": {
1010
"@vitejs/plugin-react": "^3.1.0",

apps/tree-todo-list/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"dependencies": {
7-
"effector-action": "^1.1.0"
7+
"effector-action": "^1.1.1"
88
},
99
"devDependencies": {
1010
"@vitejs/plugin-react": "^3.1.0",

apps/tree-todo-list/src/model.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,14 @@ function createRemoveCompleted(
160160
source: todoList.$keys,
161161
target: {
162162
removeCompletedNestedChilds: todoList.api.removeCompleted,
163-
/** effector-action messing with function payloads so we need to wrap data to pass thru it */
164-
removeItems: todoList.edit.remove.prepend<{
165-
fn: (entity: TodoShape) => boolean;
166-
}>(({ fn }) => fn),
163+
removeItems: todoList.edit.remove,
167164
},
168165
fn(target, childKeys) {
169166
target.removeCompletedNestedChilds({
170167
key: childKeys,
171168
data: Array.from(childKeys, () => undefined),
172169
});
173-
target.removeItems({
174-
fn: ({ completed }) => completed,
175-
});
170+
target.removeItems(({ completed }) => completed);
176171
},
177172
});
178173
}

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)