# RefSubject.HydrationAttribute

Defines the hydration attribute state contract.

## Signatures

```ts
export interface HydrationAttribute {
    readonly name: string;
    readonly value: string;
}
```

## Why

Represents one exact name/value pair a server renderer can write without depending on a DOM
implementation.

## Ownership and lifetime

HydrationAttribute is a contract and performs no acquisition. Implementations retain the errors,
services, interruption, and Scope requirements expressed by its members.

## Property: name

Exact DOM attribute name for one serialized payload.

## Property: name: Why

Carries the exact attribute name used for a serialized value.

## Property: name: Ownership and lifetime

This declaration acquires no resources. Effects represented by the contract retain their own
services and Scope requirements.

## Property: value

Schema-encoded payload written to the hydration attribute.

## Property: value: Why

Carries the already encoded attribute payload; encoding failures occur before this record is
produced.

## Property: value: Ownership and lifetime

This declaration acquires no resources. Effects represented by the contract retain their own
services and Scope requirements.
