Closed greymour closed 2 weeks ago
I've updated the documentation and now this function is @internal
and not publicly documented. Users should go through event.emit
if they need this effect now! This was actually never really planned as part of the public api it just was because of how gleam worked before the @internal
attribute, thanks for pointing it out.
While working with
effect.event
I couldn't remember how to access the JSON encoded payload from the emitted event (I had been smoking a LOT of weed so my recollection was... not what it normally is (I am Canadian, this is perfectly legal)), and the docs don't explicitly state that you can access the payload on the event'sdetail
property; this is in contrast to the documentation forevent.emit
, which explicitly states this.For smooth-brained individuals such as myself, I recommend updating the
effect.event
docs to the following: