MCPcopy
hub / github.com/BetaSu/big-react / useContext

Function useContext

packages/react/index.ts:35–38  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

33};
34
35export const useContext: Dispatcher['useContext'] = (context) => {
36 const dispatcher = resolveDispatcher() as Dispatcher;
37 return dispatcher.useContext(context);
38};
39
40export const use: Dispatcher['use'] = (usable) => {
41 const dispatcher = resolveDispatcher() as Dispatcher;

Callers 2

CpnFunction · 0.90
ChildFunction · 0.90

Calls 1

resolveDispatcherFunction · 0.90

Tested by

no test coverage detected