Implementing a Polling Pattern with Effect and Atoms
I'm struggling with how to set up a polling pattern. I'd like to do something like:
and then
The documentation on this is rather sparse. I've also tried different approaches to the one above, such as
and
where the stable reference seems to be required or I just get infinite rerenders recreating the atom, but this still doesn't work since it only logs
and then
The documentation on this is rather sparse. I've also tried different approaches to the one above, such as
and
where the stable reference seems to be required or I just get infinite rerenders recreating the atom, but this still doesn't work since it only logs
poll once.