Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/editablejs/editable
/ useNodeSelected
Function
useNodeSelected
packages/editor/src/hooks/use-node-selected.ts:8–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
* Get the current `selected` state of an element.
7
*/
8
export
const
useNodeSelected = (): boolean => {
9
return
React.useContext(NodeSelectedContext)
10
}
Callers
1
TableComponent
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…