Skip to content

Commit

Permalink
Proper display name for created FocusContext (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wozniak authored Sep 11, 2023
1 parent f43a2c9 commit 6b05308
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useFocusContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useContext, createContext } from 'react';
import { ROOT_FOCUS_KEY } from './SpatialNavigation';

export const FocusContext = createContext(ROOT_FOCUS_KEY);
FocusContext.displayName = "FocusContext";

/** @internal */
export const useFocusContext = () => useContext(FocusContext);

0 comments on commit 6b05308

Please sign in to comment.