day8 / re-frame

A ClojureScript framework for building user interfaces, leveraging React
http://day8.github.io/re-frame/
MIT License
5.42k stars 715 forks source link

[Enhancement]: unwrap interceptor should show event id to help locate implementation #803

Open hipitihop opened 4 months ago

hipitihop commented 4 months ago

What do you suggest?

The unwrap intereceptor correctly detects when event is not dispatched with the correct signature. However, in order to help debug the problem, the error should include the id of the event, so that one can more easily find the handler implementation or more importantly, the dispatch point

Currently shows: re-frame: \"unwrap\" interceptor must be a vector of two elements \"[event-id payload-map]