From a225ac475b65ee29a707ea5f5098d2c1ea68b252 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 25 May 2025 14:46:24 +0800 Subject: [PATCH 1/2] update Signed-off-by: Innei --- apps/desktop/changelog/next.md | 8 +------- .../internal/components/src/common/Focusable/hooks.ts | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/desktop/changelog/next.md b/apps/desktop/changelog/next.md index eb0db6436..435a4c852 100644 --- a/apps/desktop/changelog/next.md +++ b/apps/desktop/changelog/next.md @@ -1,11 +1,5 @@ # What's new in vNEXT_VERSION -## Shiny new things - -## Improvements - ## No longer broken -## Thanks - -Special thanks to external contributors @ for their valuable contributions +Performance: Fix context menu re-render loop. diff --git a/packages/internal/components/src/common/Focusable/hooks.ts b/packages/internal/components/src/common/Focusable/hooks.ts index a5e2a0e26..426689538 100644 --- a/packages/internal/components/src/common/Focusable/hooks.ts +++ b/packages/internal/components/src/common/Focusable/hooks.ts @@ -32,10 +32,11 @@ export const useGlobalFocusableScope = () => { } export const useGlobalFocusableHasScope = (scope: string) => { - return useGlobalFocusableScopeSelector((v) => v.has(scope)) + return useGlobalFocusableScopeSelector(useCallback((v) => v.has(scope), [scope])) } export const useGlobalFocusableScopeSelector = (selector: (scope: Set) => boolean) => { const ctx = use(GlobalFocusableContext) + return useAtomValue(useMemo(() => selectAtom(ctx, selector), [ctx, selector])) } From 558576c7ee48aa6281f6c8ae8507f06ae4fa9977 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 25 May 2025 14:47:09 +0800 Subject: [PATCH 2/2] release(desktop): hotfix to release v0.4.9 --- apps/desktop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 06e71f125..c75d847a9 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,7 +1,7 @@ { "name": "Folo", "type": "module", - "version": "0.4.8", + "version": "0.4.9", "private": true, "description": "Follow everything in one place", "author": "Folo Team",