react

"mulling over state management stuff"
martinklepsch 2020-07-22T10:52:08.465Z

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

martinklepsch 2020-07-22T10:52:29.465500Z

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

martinklepsch 2020-07-22T10:53:12.466200Z

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

lilactown 2020-07-22T18:06:55.467200Z

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

lilactown 2020-07-22T18:07:16.467600Z

are you using reagent? or plain react + hooks?