Skip to main content

Module react

Module react 

Source
Expand description

REACT (Reaction) action native hooks

Handles reaction lifecycle:

  • on_create: Updates subject action’s reaction count for local reactions
  • on_receive: Updates subject action’s reaction count for incoming reactions

Note: REACT uses subject field to reference the action being reacted to, NOT parent. This is because reactions don’t create visible hierarchy.

Functions§

on_create
REACT on_create hook - Handle local reaction creation
on_receive
REACT on_receive hook - Handle incoming reaction