# signalStateStore

Package: `@threadplane/render` · 0.3.4

Reference: /docs/api/render/signalStateStore

```typescript
import { signalStateStore } from '@threadplane/render';
```

## signalStateStore · overload 1

Create a signal-backed StateStore for a generative-UI surface —
holds the bound state that spec `$bindState` paths read and interactive
elements write, with path-addressable get/set and change subscriptions.

Every path is a JSON Pointer and must start with `/` (or be `''` / `'/'`
for the root); a slash-less path throws.

```typescript
export declare function signalStateStore(initialState?: StateModel): SignalStateStore;
```

- **initialState**: Optional starting state object.

**Returns:** A [SignalStateStore](/docs/api/render/SignalStateStore) bridging Angular signals to the render engine.

```ts
const store = signalStateStore({ count: 0 });
store.set('/count', 1);
store.lastChange?.(); // { path: '/count', value: 1 }
```