# makeState

Creates hydrated Select state. The caller supplies id; value and activeId default null, open
false, and loop true.

## Signatures

```ts
export declare function makeState(initial: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{
    readonly id: string;
    readonly value: string | null;
    readonly open: boolean;
    readonly activeId: string | null;
    readonly orientation: "vertical";
    readonly loop: boolean;
    readonly rtl: boolean;
    readonly virtualFocus: boolean;
}, Schema.SchemaError, never, never>, never, Scope.Scope>;
```



## Examples

```ts
import * as Effect from "effect/Effect";
import * as Select from "@typed/ui/Select";

const program = Effect.scoped(
  Effect.gen(function* () {
    const state = yield* Select.makeState({ id: "timezone" });
    const collection = yield* Select.makeCollection();
    return { state: yield* state, collection: yield* collection };
  }),
);
```
