inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Group event and side effect in trace tab

Open ilyaagarkov opened this issue 4 years ago • 1 comments

Version 0.8 with trace tab looks amazing!

But what if we could see logs grouped not by a tick but grouped by event with all side effects this event run

as example

const event1 = createEvent();
const event2 = createEvent();

const effect = createEffect(() => {});

forward({
 from: event1,
  to: effect
})

event1();
event2()

show something like this

event `event1` triggered
  effect `effect` triggered
  event `effect.done` triggered


event `event2`  triggered

ilyaagarkov avatar Jan 13 '22 21:01 ilyaagarkov

Looks like it can result in a very long trace in some cases 🤔 e.g. long-polling cycles or something like that

Should this be somehow detected or filtered?

event `event1` triggered
  25 times:
  effect `effect` triggered
  event `effect.done` triggered
  -> cycle: effect 'effect' triggered

AlexandrHoroshih avatar Jan 15 '22 21:01 AlexandrHoroshih