# RenderContext

Package: `@threadplane/render` · 0.3.4

Reference: /docs/api/render/RenderContext

```typescript
import type { RenderContext } from '@threadplane/render';
```

## RenderContext

Shared render-tree dependencies supplied to elements: registry, state store, computed functions, action handlers, and event callback.

```typescript
export interface RenderContext  {
  emitEvent?: (event: RenderEvent) => void;
  functions?: Record<string, ComputedFunction>;
  handlers?: Record<string, (params: Record<string, unknown>) => unknown | Promise<unknown>>;
  loading?: boolean;
  registry: AngularRegistry;
  store: StateStore;
}
```

### emitEvent

```typescript
emitEvent?: (event: RenderEvent) => void;
```

### functions

```typescript
functions?: Record<string, ComputedFunction>;
```

### handlers

```typescript
handlers?: Record<string, (params: Record<string, unknown>) => unknown | Promise<unknown>>;
```

### loading

```typescript
loading?: boolean;
```

### registry

```typescript
registry: AngularRegistry;
```

### store

```typescript
store: StateStore;
```