From 33bf954d9e798d0573ed68ac4d68055af94c97a2 Mon Sep 17 00:00:00 2001 From: William So Date: Sat, 30 Sep 2023 11:20:18 +0800 Subject: [PATCH] Make `onMutate` compare objects deeply when deciding to trigger the callback Signed-off-by: William So --- .changeset/mighty-hairs-cover.md | 5 +++++ sources/settings.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/mighty-hairs-cover.md diff --git a/.changeset/mighty-hairs-cover.md b/.changeset/mighty-hairs-cover.md new file mode 100644 index 0000000..6e2dc38 --- /dev/null +++ b/.changeset/mighty-hairs-cover.md @@ -0,0 +1,5 @@ +--- +"@polyipseity/obsidian-plugin-library": minor +--- + +Make `onMutate` compare objects deeply when deciding to trigger the callback. diff --git a/sources/settings.ts b/sources/settings.ts index 6f6b207..7087821 100644 --- a/sources/settings.ts +++ b/sources/settings.ts @@ -71,8 +71,8 @@ export abstract class AbstractSettingsManager