MCPcopy Create free account
hub / github.com/effector/effector / useGate

Function useGate

src/react/ssr.ts:93–98  ·  view source on GitHub ↗
(
  GateComponent: Gate<Props>,
  props: Props = {} as any,
)

Source from the content-addressed store, hash-verified

91
92/** useGate wrapper for scopes */
93export function useGate<Props>(
94 GateComponent: Gate<Props>,
95 props: Props = {} as any,
96) {
97 return useGateBase(GateComponent, props, getScope(true))
98}

Callers 5

ComponentFunction · 0.50
AppFunction · 0.50
ComponentFunction · 0.50

Calls 2

useGateBaseFunction · 0.90
getScopeFunction · 0.90

Tested by 3

ComponentFunction · 0.40
AppFunction · 0.40
ComponentFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…