viscous icon indicating copy to clipboard operation
viscous copied to clipboard

Investigate support for refreshing derefs

Open phronmophobic opened this issue 3 years ago • 2 comments

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?

phronmophobic avatar Aug 12 '22 17:08 phronmophobic

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)

phronmophobic avatar Aug 12 '22 17:08 phronmophobic

How I imagined it would work is roughly like this:

image

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.

isaksky avatar Aug 12 '22 20:08 isaksky