Closed RealPeha closed 4 years ago
Hello! Nice perf improvements :) One thing, this has changed the behaviour when you want to update a log displayed in your component, as shown in this sandbox: https://codesandbox.io/s/console-feed-forked-3ev3o?file=/src/demo/index.js The first log stays displayed. Is it possible to force a refresh of the display? Thanks!
The ConsoleMessage component should never be updated unless the amount changes. PureComponent didn't solve the problem, so I added shouldComponentUpdate
Before (with PureComponent):
Now (with shouldComponentUpdate):
This gave an incredibly large performance gain, at the native console level