Skip to content

Commit

Permalink
update website to use correct dependency for descendants
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance Strickland committed May 21, 2020
1 parent 1b2535f commit 606f8f6
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 995 deletions.
4 changes: 2 additions & 2 deletions packages/descendants/src/index.tsx
Expand Up @@ -73,7 +73,7 @@ export function useDescendantsInit<DescendantType extends Descendant>() {
export function useDescendants<DescendantType extends Descendant>(
ctx: React.Context<DescendantContextValue<DescendantType>>
) {
return React.useContext(ctx).descendants;
return useContext(ctx).descendants;
}

export function DescendantProvider<DescendantType extends Descendant>({
Expand All @@ -87,7 +87,7 @@ export function DescendantProvider<DescendantType extends Descendant>({
items: DescendantType[];
set: React.Dispatch<React.SetStateAction<DescendantType[]>>;
}) {
let registerDescendant = React.useCallback(
let registerDescendant = useCallback(
({
element,
index: explicitIndex,
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Expand Up @@ -24,6 +24,7 @@
"@reach/checkbox": "file:../packages/checkbox",
"@reach/combobox": "file:../packages/combobox",
"@reach/component-component": "file:../packages/component-component",
"@reach/descendants": "file:../packages/descendants",
"@reach/dialog": "file:../packages/dialog",
"@reach/disclosure": "file:../packages/disclosure",
"@reach/listbox": "file:../packages/listbox",
Expand Down

0 comments on commit 606f8f6

Please sign in to comment.