# attemptHydration

Locates a compatible SSR template range for an advanced render context.

## Signatures

```ts
export declare function attemptHydration(ctx: TemplateContext, hash: string): {
    readonly where: HydrationTemplate;
    readonly hydrateCtx: HydrateContext;
} | undefined;
```

## Why

Hydration is a precise marker-and-hash match, not a promise to reconcile any
arbitrary existing HTML. A missing compatible range disables hydration for
the context and lets normal DOM construction proceed.

## Ownership and lifetime

The returned range and context are borrowed from the active render Scope.
This function does not acquire nodes, attach events, or sanitize markup.

## Examples

```ts
import { attemptHydration } from "@typed/template/Render"
import type { TemplateContext } from "@typed/template/Render"

declare const context: TemplateContext
const match = attemptHydration(context, "template-hash")
```
