NN
Size: a a a
NN
NN
🚀🚀

🚀🚀
NN
D
🚀🚀
D
A
A
A
guard({
source: getBoat,
filter: $currentBoat.map((is) => !is),
target: getBoatFx,
});
можно ли как то в filter перебросить параметр id из Event?DS
DS
guard({
source: getBoat,
filter: $currentBoat.map((is) => !is),
target: getBoatFx,
});
можно ли как то в filter перебросить параметр id из Event?A
const sampleGetBoat = sample({
source: $currentBoat,
clock: guard(getBoat, { filter: (id) => !isEmpty(id) }),
fn: (boat, id) => ({ boat, id }),
});
const guardBoat = guard({
source: sampleGetBoat,
filter: ({ boat, id }) => boat.id !== id,
});DS
const sampleGetBoat = sample({
source: $currentBoat,
clock: guard(getBoat, { filter: (id) => !isEmpty(id) }),
fn: (boat, id) => ({ boat, id }),
});
const guardBoat = guard({
source: sampleGetBoat,
filter: ({ boat, id }) => boat.id !== id,
});getBoat может быть без пейлоада? isEmpty проверяете?$currentBoat?A
DS
target: getBoatFx.prepemd(({e}) => e)A
DS
