@aem
When returning multiple values from a dependency within an object, the shallowEqual incorrectly evaluates whether or not there was a change in value depending on the order and type of these values. If both values are updated, the dependency will recalculate.
// Updating only the bar ImmutableMap below will not trigger a value update for this dependency
{
foo: [123],
bar: ImmutableMap({
baz: "baz"
}),
}
// Updating only the bar ImmutableMap below will trigger a value update for this dependency
{
bar: ImmutableMap({
baz: "baz"
}),
foo: [123],
}