ProgressBar avoidable re-renders #597
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Current behavior
Using a ProgressBar component with the
why-did-you-update
development package enabled I got a lot of warnings:Expected behavior
Skip avoidable re-renders, probably switching to PureComponent would be enough.
NOTE: not sure if this is a change that can affects other primereact components too.
Minimal reproduction of the problem with instructions
https://codesandbox.io/s/n3jqkvpm0j
(Open the browser's console to see warnings, the default codesandbox console is not working)
16.4
PrimeReact version:
2.0.0-beta9
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
all
The text was updated successfully, but these errors were encountered: