> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/react.ReadableStore.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface ReadableStore<T>

```typescript
interface ReadableStore<T> {
    getSnapshot(): T;
    subscribe(listener: StoreListener): () => void;
}
```

Types: [T](#t), [getSnapshot](#getsnapshot-1), [subscribe](#subscribe-1), [StoreListener](../types/react.StoreListener.md)

#### Type Parameters

*   <a id="t"></a>T

#### Hierarchy

*   ReadableStore
    *   [WritableStore](react.WritableStore.md)

##### Index

### <a id="methods"></a>Methods

[getSnapshot](#getsnapshot) [subscribe](#subscribe)

## <a id="methods-1"></a>Methods

### <a id="getsnapshot"></a>getSnapshot

*   <a id="getsnapshot-1"></a>
    
    ```typescript
    getSnapshot(): T
    ```
    
    Types: [T](#t)
    
    #### Returns [T](#t)
    

### <a id="subscribe"></a>subscribe

*   <a id="subscribe-1"></a>
    
    ```typescript
    subscribe(listener: StoreListener): () => void
    ```
    
    Types: [StoreListener](../types/react.StoreListener.md)
    
    #### Parameters
    
    *   listener: [StoreListener](../types/react.StoreListener.md)
    
    #### Returns () \=> void
