# StateSchema

Effect Schema used by makeState to encode, decode, and hydrate Tree state.

## Signatures

```ts
export declare const StateSchema: Schema.Struct<{
    readonly activeId: Schema.NullOr<Schema.String>;
    readonly expandedIds: Schema.$Array<Schema.String>;
    readonly loop: Schema.Boolean;
}>;
```



## Examples

```ts
import * as Schema from "effect/Schema";
import * as Tree from "@typed/ui/Tree";

const decodeState = Schema.decodeUnknownEffect(Tree.StateSchema);
```
