day8/re-frame-10x

Special treatment of :path interceptor in event tab?

Closed this issue · 2 comments

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.

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.

kimo-k commented

I think day8/re-frame#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.