Wrong Return type for useStoryblok() #895
Labels
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Describe the issue you're facing
When using the new
useStoryblok()
wrapper to use the live preview in Storyblok, the function only returns the story object. This prevents us from using the assets array returned by settingresolve_assets: 1
, because the assets array is on the same level as the story in the original response.Reproduction
https://stackblitz.com/edit/astro-sdk-demo-s3f9zj?file=src%2Fpages%2Findex.astro
Steps to reproduce
System Info
Used Package Manager
npm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: