You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a variety of reasons (e.g. determining the priority of a dispatch, instrumentation, tracing, etc.) it is important to know whether an action was dispatched as a consequence of a user interaction or not.
Therefore dispatch should add metadata flag (interactive, boolean) to the dispatched action indicating this. Furthermore dispatch should behave slightly differently based on context.
the dispatch passed to a UI component should mark the received action as 'interactive' (i.e. a consequence of a user interaction), unless the flag is already set by the code invoking it
the dispatch method passed to effects, etc. should mark the action as non-interactive, unless the flag is already set by the caller invoking it
cause metadata on actions
We know that effects can dispatch actions as well. These should get (as metadata) the original action that caused them. This way we would be able to
determine the path of actions that led to this action
produce good traces of what is/was going on
The text was updated successfully, but these errors were encountered:
interactive
metadata on actionsFor a variety of reasons (e.g. determining the priority of a dispatch, instrumentation, tracing, etc.) it is important to know whether an action was dispatched as a consequence of a user interaction or not.
Therefore dispatch should add metadata flag (
interactive
, boolean) to the dispatched action indicating this. Furthermoredispatch
should behave slightly differently based on context.dispatch
passed to a UI component should mark the received action as 'interactive' (i.e. a consequence of a user interaction), unless the flag is already set by the code invoking itdispatch
method passed to effects, etc. should mark the action as non-interactive, unless the flag is already set by the caller invoking itcause
metadata on actionsWe know that effects can
dispatch
actions as well. These should get (as metadata) the original action that caused them. This way we would be able toThe text was updated successfully, but these errors were encountered: