honeybadger-js
honeybadger-js copied to clipboard
Include component and action for components and methods
Is there a mechanism to auto-define React components & methods as Honeybadger controllers & actions, similar to how we automatically send the controller and action name in Rails, when they are available?
If I understand this correctly, I think I did some digging on this a while back. One major issue is that React mangles component names on the frontend :/ They talk about it a bit in their docs (see the Note section).
A possible solution is to set the displayName
of a Component within your React app. That would have to be done by the user, but it is a good solution when dealing with code you aren't sure about. There is more information about displayName
here and here.