re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
Mitch 2021-05-28T15:20:29.040600Z

Has anyone had success using event listener breakpoints with Reagent components? Is it possible to achieve? For example, if I put an `:on-click` listener on a Reagent component, I would expect the breakpoint to take me to the line of code where that listener is defined

p-himik 2021-05-28T16:53:09.040700Z

Just to be clear - you mean JS events and not re-frame events, right? I don't remember trying it but I don't think that'll happen because React introduces synthetic events, so it has to wrap your JS event handlers. Perhaps React DevTools browser extension does something to help with that, no clue.

Mitch 2021-05-28T17:05:46.040900Z

Yup, referring to JS events. Trying to achieve something like an event listener breakpoint as described https://developer.chrome.com/docs/devtools/javascript/breakpoints/#event-listeners. Ultimately, I would like to be able to quickly navigate to the place in my code where the component I am looking at is defined. I'll do some investigation into React Devtools to see if there is a solution there