Skip to content
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

Use information from resolved assets #938

Open
1 task done
ma-vo opened this issue Dec 17, 2024 · 0 comments
Open
1 task done

Use information from resolved assets #938

ma-vo opened this issue Dec 17, 2024 · 0 comments
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

Comments

@ma-vo
Copy link

ma-vo commented Dec 17, 2024

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.
image

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
image

Validations

@ma-vo ma-vo added 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 labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant