bvaughn / react-devtools-experimental

Experimental rewrite of the React DevTools extension
https://react-devtools-experimental.now.sh
MIT License
965 stars 55 forks source link

Cache inspected element data until it is updated #289

Closed bvaughn closed 5 years ago

bvaughn commented 5 years ago

This way we can avoid unnecessarily re-rendering function components with hooks (which can be annoying if there are breakpoints or console logs in those functions).

This is meant to help with issues like https://github.com/facebook/react-devtools/issues/1215#issuecomment-495382645 and hopefully also (to a lesser extent) #195 .