ScottLogic / kdb-boothroyd

a prototype re-implementation of KDB Studio using JavaScript and Electron
Apache License 2.0
5 stars 2 forks source link

Reduce render cycles #56

Closed ColinEberhardt closed 2 years ago

ColinEberhardt commented 2 years ago

The results window is a bit 'render heavy', i.e it renders 7 times when the data changes. This PR reduces this down to 3.

also see: https://betterprogramming.pub/updating-state-from-properties-with-react-hooks-5d48693a4af8