Autodesk / orion-ui

UI Components that work seamlessly in multiple UI frameworks
https://goo.gl/shxHPB
Other
22 stars 6 forks source link

Look through components for event registration and extract to wrapping React component #296

Open camwest opened 7 years ago

camwest commented 7 years ago
As a developer
I want to use the React Developer tools to see the state and props of my components
So that I can understand why it's in the state that it is

Currently we listen for events in some adapters (example: this.hig.onProfileImageClick(this.openProfile);

We should remove these event listeners because they are opaque to React Dev tools. Instead let's use a wrapper component which listens to the event and sets a property on the adapter.