statig icon indicating copy to clipboard operation
statig copied to clipboard

After dispatch hook

Open dragonnn opened this issue 10 months ago • 0 comments

Although on_dispatch and on_transition hook are intend to be used for loging in some cases it can be useful to abuse them to have a global even handler that stores some filtered events in self. For that case it sometimes makes sense to be able to store something in self after a state handler is called to for example use it for storing previous values that can be used when a new value comes in to compare too.

dragonnn avatar Apr 18 '24 13:04 dragonnn