TP
Size: a a a
TP
🚀🚀
🚀🚀
🚀🚀
const fx = createEffect(async () => {});
globalCounter.on(fx.finally, (s) => s - 1);V
TP
V
+=1 куда запихнуть? через prepend?🚀🚀
+=1 куда запихнуть? через prepend?V
🚀🚀
counter
.on(fx, x => x + 1)
.on(fx.finally, x => x - 1)c
c
V
V
V
V
🚀🚀
🚀🚀
c
domain.onCreateEffect(fx => {
$effects
.on(fx.inFlight, (all, current) => ({
...all,
[fx.sid]: current
}))
})
$inFlight = $effects.map(
all =>
Array.from(Object.values(all))
.reduce((c, a) => c+a, 0)
)V
import { createEffect } from "effector" пишу import { craeteEffect } from "./myDomain"?