Skip to content

Commit

Permalink
I hate it (hooks)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed May 15, 2024
1 parent c05a146 commit a4426a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/interactivity/src/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const namespaceStack: string[] = [];
* @return The context content.
*/
export const getContext = < T extends object >( namespace?: string ): T =>
// @ts-expect-error it's any!
getScope()?.context[ namespace || getNamespace() ];

/**
Expand Down

0 comments on commit a4426a8

Please sign in to comment.