From de5fbb7debfb591a934da2a615b545b93033de1b Mon Sep 17 00:00:00 2001 From: guidettj Date: Thu, 12 Mar 2026 17:12:09 +0100 Subject: [PATCH] docs: use lighter lodash isEqual import in equality example (cherry picked from commit 7d483f28a4d8fa5972433a09da3f19e547386c2a) --- adev/src/content/guide/signals/overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adev/src/content/guide/signals/overview.md b/adev/src/content/guide/signals/overview.md index 3a2387df4c7..c558ec1b643 100644 --- a/adev/src/content/guide/signals/overview.md +++ b/adev/src/content/guide/signals/overview.md @@ -237,9 +237,9 @@ When you read a signal within an `OnPush` component's template, Angular tracks t When creating a signal, you can optionally provide an equality function, which will be used to check whether the new value is actually different than the previous one. ```ts -import _ from 'lodash'; +import isEqual from 'lodash/isEqual'; -const data = signal(['test'], {equal: _.isEqual}); +const data = signal(['test'], {equal: isEqual}); // Even though this is a different array instance, the deep equality // function will consider the values to be equal, and the signal won't