From 5e487543514a77e173e70172c957f1afb03e7e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 27 Oct 2025 15:33:57 +0100 Subject: [PATCH] pl-fe: improve selectors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/stores/settings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/stores/settings.ts b/packages/pl-fe/src/stores/settings.ts index e7002f9a2..34109d382 100644 --- a/packages/pl-fe/src/stores/settings.ts +++ b/packages/pl-fe/src/stores/settings.ts @@ -185,7 +185,7 @@ const useSettingsStore = create()(mutative((set) => ({ }, }), { enableAutoFreeze: true })); -const useSettings = () => useSettingsStore().settings; -const useSettingsStoreActions = () => useSettingsStore().actions; +const useSettings = () => useSettingsStore((state) => state.settings); +const useSettingsStoreActions = () => useSettingsStore((state) => state.actions); export { useSettingsStore, useSettings, useSettingsStoreActions };