re-frame-10x icon indicating copy to clipboard operation
re-frame-10x copied to clipboard

Special treatment of :path interceptor in event tab?

Open Dexterminator opened this issue 7 years ago • 1 comments
trafficstars

When using the :path interceptor, the :db effect in the "Effects" panel of the "Events" tab is sometimes a bit hard to understand. It's possible to see that :path is in the list of interceptors, but not which path it actually is.

I have no idea of how difficult it would be, but a cool feature would be to indicate the :path next to the :db effect in the "Effects" panel in some way, as well as in the :path interceptor in the "Interceptors" panel.

Dexterminator avatar Feb 27 '18 11:02 Dexterminator

This is a good idea, we've been considering adding a :description to interceptors which would let them provide a textual description of what they do for people to inspect.

danielcompton avatar Feb 27 '18 22:02 danielcompton

I think https://github.com/day8/re-frame/pull/786 solves this. Implementation is pretty straightforward. On the app-db tab, you can see the path in the :path interceptor's :comment key.

I opt for a :comment key instead of a :description. Descriptions are re-frame's currency, so this key would be a description's description, which feels inarticulate.

kimo-k avatar Jun 26 '23 12:06 kimo-k