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
@tel can you give an example ?
@shaym @antishok analogous to the difference between functions and macros IMO.
(and in this case, the functions play the role of macros )
@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
my day with re-frame https://github.com/Day8/re-frame/pull/107