[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / transient

# Variable: transient

> `const` **transient**: (`value`, `context`) => `void`

Defined in: [flow/src/decorators.ts:386](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/decorators.ts#L386)

Marks a field as transient — excluded from the snapshot entirely.

## Parameters

### value

`unknown`

### context

`ClassFieldDecoratorContext`

## Returns

`void`

## Remarks

Unlike `@computed` (which is derived and re-runs each render), a transient field is ordinary
server-side state that simply never crosses the wire and is not persisted between requests:
it holds its default value at the start of each render and is invisible to the client. Use it
for server-only scratch state (caches, handles, injected services) that must not be serialized.
Applies only to a field; a getter/accessor is rejected at runtime.

## Example

```tsx
class Report extends Component {
  // Server-only handle — never serialized to the client.
  @transient private db!: DatabaseConnection;
}
```
