plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
486 stars 661 forks source link

useSelector is returned a different result when called with the same parameters in IdWidget. #6449

Closed iFlameing closed 3 weeks ago

iFlameing commented 3 weeks ago

Bug in console due to IdWidget useSelector.

Selector unknown returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization {