You still can dispatch this event before the flush.