You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(property) value: StreamableValue<any, any>
The value of the streamable. This can be returned from a Server Action and received by the client. To read the streamed values, use the readStreamableValue or useStreamableValue APIs.
there are no errors
The value is not just inferred instead of any.
Yeah createStreamableValue() can't infer its data type if data is set later with a .update() in a new clousure. I'm not sure if that's possible with TypeScript (example).
Only createStreamableValue<T>() and createStreamableValue(data) have the data type.
Description
follow this example at vercel AI example
https://sdk.vercel.ai/examples/next-app/basics/streaming-object-generation#server
createStreamableValue doesnt inferred although using
stream.update(partialObject);
Code example
Additional context
how can I fix this problem?
are there anyone have same problem??
The text was updated successfully, but these errors were encountered: