Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/puckeditor/puck
/ useIsFocused
Function
useIsFocused
packages/core/components/AutoField/lib/use-is-focused.ts:3–5 ·
view source on GitHub ↗
(path: string)
Source
from the content-addressed store, hash-verified
1
import
{ useAppStore } from
"../../../store"
;
2
3
export
const
useIsFocused = (path: string) => {
4
return
useAppStore((s) => s.state.ui.field.focus === path);
5
};
Callers
1
useLocalValue
Function · 0.90
Calls
1
useAppStore
Function · 0.90
Tested by
no test coverage detected