test/tmp/app/reflexes/demo_reflex.rb in stimulus_reflex-3.4.0.pre7 vs test/tmp/app/reflexes/demo_reflex.rb in stimulus_reflex-3.4.0.pre8
- old
+ new
@@ -14,9 +14,10 @@
# - params - parameters from the element's closest form (if any)
# - element - a Hash like object that represents the HTML element that triggered the reflex
# - signed - use a signed Global ID to map dataset attribute to a model eg. element.signed[:foo]
# - unsigned - use an unsigned Global ID to map dataset attribute to a model eg. element.unsigned[:foo]
# - cable_ready - a special cable_ready that can broadcast to the current visitor (no brackets needed)
+ # - reflex_id - a UUIDv4 that uniquely identies each Reflex
#
# Example:
#
# before_reflex do
# # throw :abort # this will prevent the Reflex from continuing