re-frame-10x
re-frame-10x copied to clipboard
Special treatment of :path interceptor in event tab?
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.
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.