viscous
viscous copied to clipboard
Investigate support for refreshing derefs
https://clojurians.slack.com/archives/C03S1L9DN/p1660325273468559?thread_ts=1660322865.445509&cid=C03S1L9DN
For example, Imagine I'm viewing path [:a :d :e :g], and let's say :d is derefable. Am I able to click refresh on :d on that path, and have the data below :d get refreshed?
Some design issues:
- should values be refreshed on push/pop?
- what happens if the current path no longer exists after refreshing?
- what happens if the current path throws an exception on refresh?
- should there be a way to selectively refresh some atoms and not others? (I'm leaning towards no, but I'm open to being convinced otherwise)
How I imagined it would work is roughly like this:

So if you click on the deref, everything from there on out would be refreshed.
I'll think about those questions and see if I can come up with any ideas.