feature - add event filter operators like system.ignoreEvent
, system.debounceOn
#84
Closed
2 tasks done
Labels
enhancement
New feature or request
We are proposal to add event filter operators. these operators can prevent unnecessary event dispatching. Here is initial imaging of these operators, it may change before we implementing them, but we issued the demand first:
system.ignoreEvent
Ignore candidate event when it met some condition.
Usage:
Above code shown if the system is already in loading status, then upcoming
TriggerLoadData
event will be ignored.This operator will intercept event if some condition is met based on current state and the candidate event.
system.debounceOn
Apply debounce logic to some events
Usage:
Above code shown if
UpdateKeyword
event is dispatched with high frequency (quick typing), system will intercept these events to reduce unnecessary dispatching, it will pass (not inercept) event if 1 seconds has passed without dispatch anotherUpdateKeyword
event.The text was updated successfully, but these errors were encountered: