Returns the value from the previous render if it is considered equal to the newly provided value according to the comparator.
The current value.
A function that compares the previous and next values.
isShallowEqual
Returns the value from the previous render if it is considered equal to the newly provided value according to the comparator.