# Function: useGate()

```typescript
export function useGate(
  name: string,
  flow: string,
  check?: GateCheck<any>,
)
```

Defined in: [hooks/useGate.ts:5](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/hooks/useGate.ts#L5)

## Parameters

### name

`string`

### flow

`string`

### check?

`any`

## Returns

`object`

### access

> **access**: `boolean` \| `null`

### checking

> **checking**: `boolean`

### result

> **result**: `any`

### trigger

> **trigger**: (`sync?`, `options?`) => `Promise`\<`GateResult`\>

#### Parameters

##### sync?

`any`

##### options?

`any`

#### Returns

`Promise`\<`GateResult`\>

Source: https://plandalf.com/docs/packages/react/functions/useGate
