jargon

Frontend & browser·JavaScript in the browser

the object had exactly the same contents as last render and the component re-rendered anyway.

Referential equality

Also calledidentity comparison, reference equality

Comparing two values by whether they are the same object in memory rather than by their contents, which is what `===` does for objects, arrays and functions. Every framework's change detection is built on it, so an object literal or an inline arrow function created during render is a new value every time and defeats every optimisation downstream. This is the single mechanism behind most 'why does this keep re-rendering' questions.

Commonly confused with