effector/patronum

debug operator misses sample in trace for a domain

ilyaagarkov opened this issue · 0 comments

it looks like we should have the same trace for calling
debug({trace: true}, domain)
and
debug({trace: true}, up, $count, fx, fx2)

import { debug } from 'patronum' 
import { createDomain } from "effector"

const domain = createDomain()

const up = domain.createEvent();
const $count = domain.createStore(0).on(up, (s) => s + 1);
const fx = domain.createEffect(() => {});
const fx2 = domain.createEffect(() => {});

sample({
  clock: $count,
  target: fx,
});

sample({
  clock: fx.done,
  target: fx2,
});

but for the first one we miss samples in trace

reproduce https://share.effector.dev/lhr4qDCI