I have a memoized functional component. Once the parent library component renders, react calls update memo component to check whether my func. component needs to render again. The comparison "current.ref === workInProgress.ref" fails and causes rerender of my functional component.
function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
What does "current.ref === workInProgress.ref" comparison mean? Can you please suggest me good doc to understand this ? TIA