honeybadger-js icon indicating copy to clipboard operation
honeybadger-js copied to clipboard

Include component and action for components and methods

Open joshuap opened this issue 5 years ago • 1 comments

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?

joshuap avatar Apr 16 '19 01:04 joshuap

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.

wuz avatar Jul 10 '19 20:07 wuz