-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore (docs): improve example content, highlighting & install snippets #1790
Conversation
forecast, | ||
}} | ||
/> | ||
<WeatherCard weather={weather} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will affect the highlighting (line 158) which needs to be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh you are right, fixed
thank you! |
I've also added a fix to remove an unused import that might create confusion (at least it did for me) about if that was needed or not and also typed the |
Added tabs to install the dependencies with the different package managers (to be consistent with other parts of the documentation like https://sdk.vercel.ai/docs/ai-sdk-core/schemas-and-zod) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this is very helpful!
Hi team, I was going through the documentation of the Vercel AI SDK for RSC and I think these changes were wrong in the original documentation, as we were obtaining the data from the
getWeather
external function, destructuring thecontent
but then not using the returned variables since the attributes are being hardcoded in thereturn
statement of each oneLet me know if I got something wrong. Great tool and documentation btw! 😄
EDIT: made some more updates, described below (and in the commit msgs)