Merge pull request #3804 from RSSNext/hotfix/25.5.25

chore(desktop): Release v0.4.9 for hotfix
This commit is contained in:
Innei 2025-05-25 14:48:35 +08:00 committed by GitHub
commit 5251fa921e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 9 deletions

View File

@ -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.

View File

@ -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",

View File

@ -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<string>) => boolean) => {
const ctx = use(GlobalFocusableContext)
return useAtomValue(useMemo(() => selectAtom(ctx, selector), [ctx, selector]))
}