This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
like when a reducer only owns a subset of the state and that state gets expanded to the whole thing
@shaym @antishok analogous to the difference between functions and macros IMO.
@val_waeselynck: Sure, though it’ll be a toy example. Consider a reducer which owns a bit of state that computes the total number of clicks arriving at some element. And another reducer which is receptive to a clock event emitting ticks every second.
If the real state of interest is the average number of clicks per second then this data must be derived from the other two
it is impure, though and must store the internal states for
db2 to “collect" events
only emitting when there’s an update from both… or emitting each time either updates… both forms work