MCPcopy Index your code
hub / github.com/adobe/react-spectrum / usePersistedKeys

Function usePersistedKeys

packages/react-aria-components/src/Collection.tsx:291–293  ·  view source on GitHub ↗
(focusedKey: Key | null)

Source from the content-addressed store, hash-verified

289
290type PersistedKeysReturnValue = Set<Key> | null;
291export function usePersistedKeys(focusedKey: Key | null): PersistedKeysReturnValue {
292 return useMemo(() => (focusedKey != null ? new Set([focusedKey]) : null), [focusedKey]);
293}

Callers 3

TabListInnerFunction · 0.90
MenuInnerFunction · 0.90
TagListInnerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected