Use information from resolved assets #938
Labels
enhancement
[Issue][PR] New feature
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Description
As a delevoper using Storyblok SDK I want to use information from resolved assets like content_length and content_type.
Currently only the storydata is returned by useStoryblok. If I use the query parameter "resolve_assets" the needed information are in the payload, but on the root layer – next to the storydata.
The request is quite similar to #265, but this time the needed data is really not part of the storydata.
Suggested solution or improvement
I would like to receive the information from the resolved assets without firing a second request. Probably a stupid suggestion, but to avoid a breaking change: What if we merge the assets array into the story object.
Additional context
With this change components like the following would be achievable
Validations
The text was updated successfully, but these errors were encountered: