react 2020-07-22

When you have some kind of subscription layer and one of the inputs is time (i.e. to determine if a user has been active recently) how do you integrate time into your subscription graph? My intuitive idea is that it is just an input but I’m curious what others are doing

By ” just an input” I mean something like an atom that updates every second or similar

In a way it feels like a “stream” type of abstraction might be more appropriate for this

yeah atoms are sort of awkward to use as streams of data

are you using reagent? or plain react + hooks?